This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Attribute VB_Name = "JavaModule" | |
Option Explicit | |
''' Java コンパイル | |
Public Sub JavaCompile() | |
CompileAndRun True | |
End Sub |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
org.jboss.weld.exceptions.DeploymentException: WELD-001409 Ambiguous dependencies for type [ScrumManager] with qualifiers [@Default] at injection point [[field] @Inject jsf2.demo.scrum.web.controller.scrum.StoryAction.scrumManager]. Possible dependencies[[Managed Bean [class jsf2.demo.scrum.application.scrum_management.impl.ScrumManagerImpl_yle32y_Impl] with qualifiers [@Any @Default],Session bean [class jsf2.demo.scrum.application.scrum_management.impl.ScrumManagerImpl with qualifiers [@Any @Default]; local interfaces are [ScrumManager]]] | |
at org.jboss.weld.bootstrap.Validator.validateInjectionPoint(Validator.java:261) | |
at org.jboss.weld.bootstrap.Validator.validateBean(Validator.java:105) | |
at org.jboss.weld.bootstrap.Validator.validateRIBean(Validator.java:125) | |
~~~ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package megascus.tax; | |
import java.math.BigDecimal; | |
import java.util.Calendar; | |
import java.util.Date; | |
/** | |
* 消費税を保持します。 日付によって消費税が変更できるように実装するサンプルです。 実際に施行される日付とは違う可能性があるので注意して下さい。 | |
* | |
* @author megascus |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* | |
* @author megascus | |
*/ | |
public class JoJo { | |
public static void main(String[] args) { | |
for (int i = 1; i <= 100; i++) { | |
System.out.println(isPrime(i) ? "JoJo" : i); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* | |
* @author megascus | |
*/ | |
public class JoJo { | |
public static void main(String[] args) { | |
for (int i = 1; i <= 100; i++) System.out.println(isPrime(i) ? "JoJo" : i); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class CharSetMain { | |
public static void main(String[] args) { | |
for (Charset cs : Charset.availableCharsets().values()) { | |
System.out.println(charsetToString(cs)); | |
} | |
} | |
private static String charsetToString(Charset cs) { | |
return cs.name() + aliasesToString(cs); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<project xmlns="http://maven.apache.org/POM/4.0.0" | |
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> | |
<modelVersion>4.0.0</modelVersion> | |
<groupId>JavaEEMaven</groupId> | |
<artifactId>JavaEEMaven</artifactId> | |
<version>1.0-SNAPSHOT</version> | |
<packaging>war</packaging> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//source | |
public static void main(String... args) { | |
String str = ""; | |
for(int i = 0;i < 100; i++) { | |
str += "hoge"; | |
} | |
} | |
//decompile |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version='1.0' encoding='UTF-8'?> | |
<server xmlns="urn:jboss:domain:2.1"> | |
<extensions> | |
<extension module="org.jboss.as.clustering.infinispan"/> | |
<extension module="org.jboss.as.connector"/> | |
<extension module="org.jboss.as.deployment-scanner"/> | |
<extension module="org.jboss.as.ee"/> | |
<extension module="org.jboss.as.ejb3"/> | |
<extension module="org.jboss.as.jaxrs"/> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class SomeService { | |
//これをいれかえたい。 | |
@Autowired | |
private SomeRepository someRepository; | |
// | |
// | |
// | |
} | |
@Repository |
OlderNewer