mirror of
https://github.com/spring-projects/spring-boot.git
synced 2026-10-03 15:59:31 +00:00
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
+1
-2
@@ -126,8 +126,7 @@ public class DevToolsDataSourceAutoConfiguration {
|
||||
|
||||
InMemoryDatabase(String urlPrefix, String... driverClassNames) {
|
||||
this.urlPrefix = urlPrefix;
|
||||
this.driverClassNames = new HashSet<String>(
|
||||
Arrays.asList(driverClassNames));
|
||||
this.driverClassNames = new HashSet<>(Arrays.asList(driverClassNames));
|
||||
}
|
||||
|
||||
boolean matches(DataSourceProperties properties) {
|
||||
|
||||
Reference in New Issue
Block a user