Merge branch '5.1.x'
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2002-2017 the original author or authors.
|
||||
* Copyright 2002-2019 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.
|
||||
@@ -150,7 +150,7 @@ public class CustomCollectionEditor extends PropertyEditorSupport {
|
||||
* @param initialCapacity the initial capacity
|
||||
* @return the new Collection instance
|
||||
*/
|
||||
@SuppressWarnings({ "rawtypes", "unchecked" })
|
||||
@SuppressWarnings({"rawtypes", "unchecked"})
|
||||
protected Collection<Object> createCollection(Class<? extends Collection> collectionType, int initialCapacity) {
|
||||
if (!collectionType.isInterface()) {
|
||||
try {
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2002-2017 the original author or authors.
|
||||
* Copyright 2002-2019 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.
|
||||
@@ -126,7 +126,7 @@ public class CustomMapEditor extends PropertyEditorSupport {
|
||||
* @param initialCapacity the initial capacity
|
||||
* @return the new Map instance
|
||||
*/
|
||||
@SuppressWarnings({ "rawtypes", "unchecked" })
|
||||
@SuppressWarnings({"rawtypes", "unchecked"})
|
||||
protected Map<Object, Object> createMap(Class<? extends Map> mapType, int initialCapacity) {
|
||||
if (!mapType.isInterface()) {
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user