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
@@ -60,7 +60,7 @@ public class AnnotationsPropertySource extends EnumerablePropertySource<Class<?>
|
||||
|
||||
private Map<String, Object> getProperties(Class<?> source) {
|
||||
Map<String, Object> properties = new LinkedHashMap<>();
|
||||
collectProperties(source, source, properties, new HashSet<Class<?>>());
|
||||
collectProperties(source, source, properties, new HashSet<>());
|
||||
return Collections.unmodifiableMap(properties);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user