Use Java 7+ diamond operator in compiler modules
This commit is contained in:
+2
-2
@@ -95,9 +95,9 @@ public abstract class CommonCompilerArguments implements Serializable {
|
||||
@ValueDescription(PLUGIN_OPTION_FORMAT)
|
||||
public String[] pluginOptions;
|
||||
|
||||
public List<String> freeArgs = new SmartList<String>();
|
||||
public List<String> freeArgs = new SmartList<>();
|
||||
|
||||
public List<String> unknownExtraFlags = new SmartList<String>();
|
||||
public List<String> unknownExtraFlags = new SmartList<>();
|
||||
|
||||
@NotNull
|
||||
public static CommonCompilerArguments createDefaultInstance() {
|
||||
|
||||
+1
-1
@@ -82,7 +82,7 @@ public class GroupingMessageCollector implements MessageCollector {
|
||||
|
||||
@NotNull
|
||||
private Collection<String> sortedKeys() {
|
||||
List<String> sortedKeys = new ArrayList<String>(groupedMessages.keySet());
|
||||
List<String> sortedKeys = new ArrayList<>(groupedMessages.keySet());
|
||||
// ensure that messages with no location i.e. perf, incomplete hierarchy are always reported first
|
||||
sortedKeys.sort((o1, o2) -> {
|
||||
if (o1 == o2) return 0;
|
||||
|
||||
+1
-1
@@ -75,7 +75,7 @@ public class ModuleXmlParser {
|
||||
}
|
||||
|
||||
private final MessageCollector messageCollector;
|
||||
private final List<Module> modules = new SmartList<Module>();
|
||||
private final List<Module> modules = new SmartList<>();
|
||||
private DefaultHandler currentState;
|
||||
|
||||
private ModuleXmlParser(@NotNull MessageCollector messageCollector) {
|
||||
|
||||
Reference in New Issue
Block a user