リビジョン e36ae9cd
| learn/java/lambda/HelloLambda/nbproject/project.properties | ||
|---|---|---|
|
annotation.processing.enabled=true
|
||
|
annotation.processing.enabled.in.editor=false
|
||
|
annotation.processing.processor.options=
|
||
|
annotation.processing.processors.list=
|
||
|
annotation.processing.run.all.processors=true
|
||
|
annotation.processing.source.output=${build.generated.sources.dir}/ap-source-output
|
||
|
application.title=HelloLambda
|
||
|
application.vendor=toru
|
||
|
build.classes.dir=${build.dir}/classes
|
||
|
build.classes.excludes=**/*.java,**/*.form
|
||
|
# This directory is removed when the project is cleaned:
|
||
| ... | ... | |
|
dist.dir=dist
|
||
|
dist.jar=${dist.dir}/HelloLambda.jar
|
||
|
dist.javadoc.dir=${dist.dir}/javadoc
|
||
|
endorsed.classpath=
|
||
|
excludes=
|
||
|
includes=**
|
||
|
jar.compress=false
|
||
| learn/java/lambda/HelloLambda/src/hellolambda/HelloImpl.java | ||
|---|---|---|
|
*/
|
||
|
package hellolambda;
|
||
|
|
||
|
import java.io.Serializable;
|
||
|
import java.util.ArrayList;
|
||
|
import java.util.Date;
|
||
|
import java.util.List;
|
||
|
|
||
|
/**
|
||
|
*
|
||
|
* @author toru
|
||
|
*/
|
||
|
public class HelloImpl implements Hello {
|
||
|
public class HelloImpl implements Hello, Serializable {
|
||
|
|
||
|
void some() {
|
||
|
List list = new ArrayList();
|
||
|
int date = new Date().getDate();
|
||
|
switch (date) {
|
||
|
case 0:
|
||
|
System.out.println("xxx");
|
||
|
case 1:
|
||
|
System.out.println("yyy");
|
||
|
break;
|
||
|
default:
|
||
|
|
||
|
}
|
||
|
List list = (List) new ArrayList();
|
||
|
list.add("Alfa");
|
||
|
}
|
||
|
}
|
||
コンパイル時に警告となるコードを追加