explicit types to diamonds
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user