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
private Set<Widget> widgets = new LinkedHashSet<Widget>(Arrays.asList());
Arrays.asList() returns a list, which doesn't match the available LinkedHashSet(Collection) constructor, so a compilation error occurs.
Clearly uniqueItems: true is triggering set creation as opposed to list. Is there any reason not to use the default constructor in generating LinkedHashSets here?
The text was updated successfully, but these errors were encountered:
I'm running into an issue where this JSON
generates this instance variable
Arrays.asList() returns a list, which doesn't match the available LinkedHashSet(Collection) constructor, so a compilation error occurs.
Clearly uniqueItems: true is triggering set creation as opposed to list. Is there any reason not to use the default constructor in generating LinkedHashSets here?
The text was updated successfully, but these errors were encountered: