Commit 8a854c38 authored by Lionel Seinturier's avatar Lionel Seinturier
Browse files

Add diamon operator whenever possible.

parent 6c0292bc
......@@ -117,7 +117,7 @@ public class CompilationRound {
* reports an error if the list of files to compile is empty. Note
* however that this is not the case with JDT.
*/
List<SourceFile> sfs = new ArrayList<SourceFile>();
List<SourceFile> sfs = new ArrayList<>();
sfs.addAll(inputFiles);
sfs.addAll(generatedFiles);
File classDir = jconf.getClassDir();
......@@ -159,13 +159,13 @@ public class CompilationRound {
private JuliacConfig jconf;
/** The source files which are given as input to Juliac. */
private List<SourceFile> inputFiles = new ArrayList<SourceFile>();
private List<SourceFile> inputFiles = new ArrayList<>();
/** The resource files. */
private List<SourceFile> resourceFiles = new ArrayList<SourceFile>();
private List<SourceFile> resourceFiles = new ArrayList<>();
/** The source files which are generated by Juliac. */
private List<SourceFile> generatedFiles = new ArrayList<SourceFile>();
private List<SourceFile> generatedFiles = new ArrayList<>();
/**
* This map contains the source types that triggered the generation of
......@@ -173,8 +173,8 @@ public class CompilationRound {
*
* @since 2.7
*/
private Map<String,Object> sourceTypes = new HashMap<String,Object>();
private Map<String,Object> sourceTypes = new HashMap<>();
/** The names of .class files ouputted by the compilation process. */
private List<String> outputFiles = new ArrayList<String>();
private List<String> outputFiles = new ArrayList<>();
}
......@@ -119,6 +119,6 @@ public class CompilationRounds {
// Data
// --------------------------------------------------------------------
private List<CompilationRound> rounds = new ArrayList<CompilationRound>();
private List<CompilationRound> rounds = new ArrayList<>();
private JuliacConfig jconf;
}
......@@ -140,7 +140,7 @@ public class MembraneHelper {
public static Class<?> getGenerator( Class<?> cl )
throws IllegalStateException {
List<Class<?>> classes = new ArrayList<Class<?>>();
List<Class<?>> classes = new ArrayList<>();
addSuperClasses(cl,classes);
for (Class<?> c : classes) {
......@@ -164,7 +164,7 @@ public class MembraneHelper {
public static Class<?>[] getInterceptors( Class<?> cl )
throws IllegalStateException {
List<Class<?>> classes = new ArrayList<Class<?>>();
List<Class<?>> classes = new ArrayList<>();
addSuperClasses(cl,classes);
for (Class<?> c : classes) {
......@@ -204,11 +204,11 @@ public class MembraneHelper {
*/
public static List<Field> getControllerAnnotatedFields( Class<?> cl ) {
List<Class<?>> classes = new ArrayList<Class<?>>();
List<Class<?>> classes = new ArrayList<>();
MembraneHelper.addSuperClasses(cl,classes);
List<Field> fields = new ArrayList<Field>();
Set<String> names = new HashSet<String>();
List<Field> fields = new ArrayList<>();
Set<String> names = new HashSet<>();
for (Class<?> c : classes) {
Field[] fs = c.getDeclaredFields();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment