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
I noticed that you used the new HashSet<>(1) instead of new HashSet<>() to initialize a HashSet,is there any profits by doing that?
I read the source code and find that new HashSet<>(1) or new HashSet<>() neither really initialize a HashMapEntry array,it's initialized when method V put(K,V) was first called by void inflateTable(int size).
AM I WRONG OR MISSED?
The text was updated successfully, but these errors were encountered:
I noticed that you used the
new HashSet<>(1)
instead ofnew HashSet<>()
to initialize aHashSet
,is there any profits by doing that?I read the source code and find that
new HashSet<>(1)
ornew HashSet<>()
neither really initialize aHashMapEntry
array,it's initialized when methodV put(K,V)
was first called byvoid inflateTable(int size)
.AM I WRONG OR MISSED?
The text was updated successfully, but these errors were encountered: