You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You tell users, that asSet returns an immutable Set.
@return a type-safe immutable {@code Set} containing the specified collection elements.
This is not true, when you pass in a mutable Set. In this case the Collection is only cast to a Set. You probably want to change the documentation or use java.util.Collections.unmodifiableSet
The text was updated successfully, but these errors were encountered:
atanasg
added a commit
to atanasg/jjwt
that referenced
this issue
Oct 31, 2024
jjwt/api/src/main/java/io/jsonwebtoken/lang/Collections.java
Line 94 in 5812f63
You tell users, that asSet returns an immutable
Set
.This is not true, when you pass in a mutable
Set
. In this case theCollection
is only cast to aSet
. You probably want to change the documentation or usejava.util.Collections.unmodifiableSet
The text was updated successfully, but these errors were encountered: