Replace explicit generics with diamond operator
Where possible, explicit generic declarations to use the Java 8 diamond operator. See gh-9781
This commit is contained in:
committed by
Phillip Webb
parent
eb35fc9fa6
commit
04fdec6f8b
@@ -40,7 +40,7 @@ class PomCondition extends Condition<File> {
|
||||
private Set<String> notExpectedContents;
|
||||
|
||||
PomCondition() {
|
||||
this(new HashSet<String>(), new HashSet<String>());
|
||||
this(new HashSet<>(), new HashSet<>());
|
||||
}
|
||||
|
||||
private PomCondition(Set<String> expectedContents, Set<String> notExpectedContents) {
|
||||
|
||||
@@ -160,7 +160,7 @@ public class GradleBuild implements TestRule {
|
||||
if (this.gradleVersion != null) {
|
||||
gradleRunner.withGradleVersion(this.gradleVersion);
|
||||
}
|
||||
List<String> allArguments = new ArrayList<String>();
|
||||
List<String> allArguments = new ArrayList<>();
|
||||
allArguments.add("-PpluginClasspath=" + pluginClasspath());
|
||||
allArguments.add("-PbootVersion=" + getBootVersion());
|
||||
allArguments.add("--stacktrace");
|
||||
|
||||
Reference in New Issue
Block a user