Skip to content

Commit 956f5a6

Browse files
authored
Add @SideEffectFree
1 parent e57e2ab commit 956f5a6

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/java.base/share/classes/java/util/Collections.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5825,6 +5825,7 @@ public static <T> boolean addAll(@GuardSatisfied Collection<? super T> c, T... e
58255825
* @throws IllegalArgumentException if {@code map} is not empty
58265826
* @since 1.6
58275827
*/
5828+
@SideEffectFree
58285829
public static <E> Set<E> newSetFromMap(Map<E, Boolean> map) {
58295830
return new SetFromMap<>(map);
58305831
}

0 commit comments

Comments
 (0)