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
The docs appears to refer to collection or StringBuffer but not to a Map
The warning should not appear where there is no option to bloat.
In the following scenario if putUnique was public there were an option to bloat the Map,
yet since putUnique is private and roleMapping is private then roleMapping field is immutable.
true. the issue is putUnique could be called elsewhere, so the question is how to determine where to stop? private? protected, package private??? etc. what if another method in this class called putUnique? What if a chain of 5 methods in this class called putUnique, and the last one was public? I'm not arguing you are correct, just that it's kind of untractable.
We could say a private method that is only called from a static block is ok. That's probably doable.
my case has two issues related to this check,
In the following scenario if
putUnique
was public there were an option to bloat the Map,yet since
putUnique
is private androleMapping
is private thenroleMapping
field is immutable.The text was updated successfully, but these errors were encountered: