Merge pull request #3546 from nguyennamthai/BAEL-1500

Initial commit for BAEL-1500
This commit is contained in:
Tom Hombergs 2018-01-29 22:05:29 +01:00 committed by GitHub
commit b0191da9f7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 36 additions and 0 deletions

View File

@ -0,0 +1,28 @@
package com.baeldung.javac;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;
public class Data implements Serializable {
static List<String> textList = new ArrayList();
private static void addText() {
textList.add("baeldung");
textList.add(".");
textList.add("com");
}
public List getTextList() {
this.addText();
List<String> result = new ArrayList<String>();
String firstElement = (String) textList.get(0);
switch (firstElement) {
case "baeldung":
result.add("baeldung");
case "com":
result.add("com");
}
return result;
}
}

View File

@ -0,0 +1,2 @@
-d javac-target -verbose
com/baeldung/javac/Data.java

View File

@ -0,0 +1,2 @@
-d javac-target
-verbose

View File

@ -0,0 +1 @@
com/baeldung/javac/Data.java

View File

@ -0,0 +1,3 @@
-d javac-target
-Xlint:rawtypes,unchecked,static,cast,serial,fallthrough
com/baeldung/javac/Data.java