explicit types to diamonds

This commit is contained in:
Anna.Kozlova
2016-08-08 16:41:19 +02:00
parent 21668f8479
commit 947fae191f
116 changed files with 634 additions and 634 deletions

View File

@@ -23,12 +23,12 @@ import java.util.Set;
public class ConverterHelper implements IIdentifierRenamer {
private static final Set<String> KEYWORDS = new HashSet<String>(Arrays.asList(
private static final Set<String> KEYWORDS = new HashSet<>(Arrays.asList(
"abstract", "do", "if", "package", "synchronized", "boolean", "double", "implements", "private", "this", "break", "else", "import",
"protected", "throw", "byte", "extends", "instanceof", "public", "throws", "case", "false", "int", "return", "transient", "catch",
"final", "interface", "short", "true", "char", "finally", "long", "static", "try", "class", "float", "native", "strictfp", "void",
"const", "for", "new", "super", "volatile", "continue", "goto", "null", "switch", "while", "default", "assert", "enum"));
private static final Set<String> RESERVED_WINDOWS_NAMESPACE = new HashSet<String>(Arrays.asList(
private static final Set<String> RESERVED_WINDOWS_NAMESPACE = new HashSet<>(Arrays.asList(
"aux", "prn", "aux", "nul",
"com1", "com2", "com3", "com4", "com5", "com6", "com7", "com8", "com9",
"lpt1", "lpt2", "lpt3", "lpt4", "lpt5", "lpt6", "lpt7", "lpt8", "lpt9"));
@@ -36,7 +36,7 @@ public class ConverterHelper implements IIdentifierRenamer {
private int classCounter = 0;
private int fieldCounter = 0;
private int methodCounter = 0;
private final Set<String> setNonStandardClassNames = new HashSet<String>();
private final Set<String> setNonStandardClassNames = new HashSet<>();
@Override
public boolean toBeRenamed(Type elementType, String className, String element, String descriptor) {