Explicit type can be replaced by <>
Issue: SPR-13188
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
/*
|
||||
* Copyright 2002-2013 the original author or authors.
|
||||
*
|
||||
* Copyright 2002-2016 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
@@ -53,7 +53,7 @@ class Jaxb2MarshallerBeanDefinitionParser extends AbstractSingleBeanDefinitionPa
|
||||
|
||||
List<Element> classes = DomUtils.getChildElementsByTagName(element, "class-to-be-bound");
|
||||
if (!classes.isEmpty()) {
|
||||
ManagedList<String> classesToBeBound = new ManagedList<String>(classes.size());
|
||||
ManagedList<String> classesToBeBound = new ManagedList<>(classes.size());
|
||||
for (Element classToBeBound : classes) {
|
||||
String className = classToBeBound.getAttribute("name");
|
||||
classesToBeBound.add(className);
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2002-2015 the original author or authors.
|
||||
* Copyright 2002-2016 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -77,7 +77,7 @@ class ClassPathJaxb2TypeScanner {
|
||||
*/
|
||||
public Class<?>[] scanPackages() throws UncategorizedMappingException {
|
||||
try {
|
||||
List<Class<?>> jaxb2Classes = new ArrayList<Class<?>>();
|
||||
List<Class<?>> jaxb2Classes = new ArrayList<>();
|
||||
for (String packageToScan : this.packagesToScan) {
|
||||
String pattern = ResourcePatternResolver.CLASSPATH_ALL_URL_PREFIX +
|
||||
ClassUtils.convertClassNameToResourcePath(packageToScan) + RESOURCE_PATTERN;
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2002-2015 the original author or authors.
|
||||
* Copyright 2002-2016 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -568,7 +568,7 @@ public class XStreamMarshaller extends AbstractMarshaller implements Initializin
|
||||
}
|
||||
|
||||
private Map<String, Class<?>> toClassMap(Map<String, ?> map) throws ClassNotFoundException {
|
||||
Map<String, Class<?>> result = new LinkedHashMap<String, Class<?>>(map.size());
|
||||
Map<String, Class<?>> result = new LinkedHashMap<>(map.size());
|
||||
for (Map.Entry<String, ?> entry : map.entrySet()) {
|
||||
String key = entry.getKey();
|
||||
Object value = entry.getValue();
|
||||
|
||||
Reference in New Issue
Block a user