Remove explicit type arguments
See gh-10494
This commit is contained in:
committed by
Andy Wilkinson
parent
a256602c7b
commit
6168fae720
@@ -38,7 +38,7 @@ import org.springframework.boot.cli.command.run.RunCommand;
|
||||
*/
|
||||
public class DefaultCommandFactory implements CommandFactory {
|
||||
|
||||
private static final List<Command> defaultCommands = Arrays.<Command>asList(
|
||||
private static final List<Command> defaultCommands = Arrays.asList(
|
||||
new VersionCommand(), new RunCommand(), new GrabCommand(), new JarCommand(),
|
||||
new WarCommand(), new InstallCommand(), new UninstallCommand(),
|
||||
new InitCommand());
|
||||
|
||||
@@ -44,7 +44,7 @@ public final class Dependency {
|
||||
* @param version the version
|
||||
*/
|
||||
public Dependency(String groupId, String artifactId, String version) {
|
||||
this(groupId, artifactId, version, Collections.<Exclusion>emptyList());
|
||||
this(groupId, artifactId, version, Collections.emptyList());
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -38,7 +38,7 @@ public abstract class GroovyTemplate {
|
||||
|
||||
public static String template(String name)
|
||||
throws IOException, CompilationFailedException, ClassNotFoundException {
|
||||
return template(name, Collections.<String, Object>emptyMap());
|
||||
return template(name, Collections.emptyMap());
|
||||
}
|
||||
|
||||
public static String template(String name, Map<String, ?> model)
|
||||
|
||||
@@ -29,7 +29,7 @@ public class CustomCommandFactory implements CommandFactory {
|
||||
|
||||
@Override
|
||||
public Collection<Command> getCommands() {
|
||||
return Collections.<Command>singleton(new CustomCommand());
|
||||
return Collections.singleton(new CustomCommand());
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -44,7 +44,7 @@ import static org.assertj.core.api.Assertions.assertThat;
|
||||
public class ProjectGenerationRequestTests {
|
||||
|
||||
public static final Map<String, String> EMPTY_TAGS = Collections
|
||||
.<String, String>emptyMap();
|
||||
.emptyMap();
|
||||
|
||||
@Rule
|
||||
public final ExpectedException thrown = ExpectedException.none();
|
||||
|
||||
Reference in New Issue
Block a user