Skip to content

Commit

Permalink
perf: actually cache EnumValues#internalMap (#4041)
Browse files Browse the repository at this point in the history
  • Loading branch information
iProdigy committed Jul 15, 2023
1 parent 41a4c2b commit 494924c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ public EnumMap<?,SerializableString> internalMap() {
for (Enum<?> en : _values) {
map.put(en, _textual[en.ordinal()]);
}
result = new EnumMap(map);
_asMap = result = new EnumMap(map);
}
return result;
}
Expand Down

0 comments on commit 494924c

Please sign in to comment.