Browse Source

Merge branch '5.3.x'

pull/28964/head
Stephane Nicoll 4 years ago
parent
commit
d1abdff89c
  1. 3
      spring-core/src/main/java/org/springframework/core/CollectionFactory.java

3
spring-core/src/main/java/org/springframework/core/CollectionFactory.java

@ -190,7 +190,8 @@ public final class CollectionFactory { @@ -190,7 +190,8 @@ public final class CollectionFactory {
else if (LinkedList.class == collectionType) {
return new LinkedList<>();
}
else if (SortedSet.class == collectionType || NavigableSet.class == collectionType) {
else if (TreeSet.class == collectionType || NavigableSet.class == collectionType
|| SortedSet.class == collectionType) {
return new TreeSet<>();
}
else if (EnumSet.class.isAssignableFrom(collectionType)) {

Loading…
Cancel
Save