Remove redundant type arguments for Java 8+ in compiler modules
This commit is contained in:
+3
-3
@@ -139,9 +139,9 @@ public class SimpleTestClassModel implements TestClassModel {
|
||||
public Collection<MethodModel> getMethods() {
|
||||
if (testMethods == null) {
|
||||
if (!rootFile.isDirectory()) {
|
||||
testMethods = Collections.<MethodModel>singletonList(new SimpleTestMethodModel(rootFile, rootFile, doTestMethodName,
|
||||
filenamePattern, checkFilenameStartsLowerCase,
|
||||
targetBackend));
|
||||
testMethods = Collections.singletonList(new SimpleTestMethodModel(
|
||||
rootFile, rootFile, doTestMethodName, filenamePattern, checkFilenameStartsLowerCase, targetBackend
|
||||
));
|
||||
}
|
||||
else {
|
||||
List<MethodModel> result = Lists.newArrayList();
|
||||
|
||||
+5
-5
@@ -88,17 +88,17 @@ public class SingleClassTestModel implements TestClassModel {
|
||||
|
||||
ContainerUtil.sort(result, (o1, o2) -> StringUtil.compare(o1.getName(), o2.getName(), true));
|
||||
|
||||
methods = Lists.<MethodModel>newArrayList(result);
|
||||
methods = Lists.newArrayList(result);
|
||||
}
|
||||
|
||||
return methods;
|
||||
}
|
||||
|
||||
@NotNull
|
||||
protected Collection<TestMethodModel> getTestMethodsFromFile(File file) {
|
||||
return Collections.<TestMethodModel>singletonList(new SimpleTestMethodModel(rootFile, file, doTestMethodName,
|
||||
filenamePattern, checkFilenameStartsLowerCase,
|
||||
targetBackend));
|
||||
private Collection<TestMethodModel> getTestMethodsFromFile(File file) {
|
||||
return Collections.singletonList(new SimpleTestMethodModel(
|
||||
rootFile, file, doTestMethodName, filenamePattern, checkFilenameStartsLowerCase, targetBackend
|
||||
));
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user