diff --git a/spring-boot-project/spring-boot/src/test/java/org/springframework/boot/context/properties/bind/CollectionBinderTests.java b/spring-boot-project/spring-boot/src/test/java/org/springframework/boot/context/properties/bind/CollectionBinderTests.java index 54c15bb61c..34238bf53d 100644 --- a/spring-boot-project/spring-boot/src/test/java/org/springframework/boot/context/properties/bind/CollectionBinderTests.java +++ b/spring-boot-project/spring-boot/src/test/java/org/springframework/boot/context/properties/bind/CollectionBinderTests.java @@ -19,7 +19,7 @@ package org.springframework.boot.context.properties.bind; import java.util.ArrayList; import java.util.Collections; import java.util.EnumSet; -import java.util.HashSet; +import java.util.LinkedHashSet; import java.util.LinkedList; import java.util.List; import java.util.Set; @@ -433,7 +433,7 @@ class CollectionBinderTests { private List items = new ArrayList<>(); - private Set itemsSet = new HashSet<>(); + private Set itemsSet = new LinkedHashSet<>(); List getItems() { return this.items;