Skip to content

Commit

Permalink
fix: ensure clusters order in envclusters openapi
Browse files Browse the repository at this point in the history
  • Loading branch information
uucloud authored and DuanYunpeng committed Nov 7, 2024
1 parent 0cba391 commit 372c4d5
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
import java.util.Collections;
import java.util.HashMap;
import java.util.HashSet;
import java.util.LinkedHashSet;
import java.util.List;
import java.util.Map;
import java.util.Set;
Expand Down Expand Up @@ -164,7 +165,7 @@ public static <K, V> Map<K, List<V>> aggByKeyToList(String key, List<?> list) {
*/
@SuppressWarnings("unchecked")
public static <K> Set<K> toPropertySet(String key, List<?> list) {
Set<K> set = new HashSet<>();
Set<K> set = new LinkedHashSet<>();
if (CollectionUtils.isEmpty(list)) {// 防止外面传入空list
return set;
}
Expand Down

0 comments on commit 372c4d5

Please sign in to comment.