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
Java uses erasure for generics. There is no way to know what the generic type of the local variable set is, so you get a string "1" and not an Integer 1. If you want that to work, you could use a class with a field of type Set<Integer>, since the generic type on the field is not erased.
The following junit test fails at the last assert with the error:
java.lang.AssertionError: expected: java.util.HashSet<[1]> but was: java.util.HashSet<[1]>
The yaml is:
The text was updated successfully, but these errors were encountered: