Skip to content

Commit

Permalink
Comments
Browse files Browse the repository at this point in the history
Normalize spelling
  • Loading branch information
garydgregory committed Nov 26, 2023
1 parent a002d09 commit 9246958
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ private CaseInsensitiveHashMap(final int initialCapacity) {
public boolean containsKey(final Object key) {
final Object realKey = lowerCaseMap.get(key.toString().toLowerCase(Locale.ENGLISH));
return super.containsKey(realKey);
// Possible optimisation here:
// Possible optimization here:
// Since the lowerCaseMap contains a mapping for all the keys,
// we could just do this:
// return lowerCaseMap.containsKey(key.toString().toLowerCase());
Expand Down

0 comments on commit 9246958

Please sign in to comment.