Skip to content

Commit 0f801fe

Browse files
author
Andrey Turbanov
committed
8288628: Unnecessary Hashtable usage in ConditionalSpecialCasing
Reviewed-by: naoto, jpai
1 parent 701ea3b commit 0f801fe

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/java.base/share/classes/java/lang/ConditionalSpecialCasing.java

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2003, 2019, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2003, 2022, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -26,8 +26,8 @@
2626
package java.lang;
2727

2828
import java.text.BreakIterator;
29+
import java.util.HashMap;
2930
import java.util.HashSet;
30-
import java.util.Hashtable;
3131
import java.util.Iterator;
3232
import java.util.Locale;
3333
import sun.text.Normalizer;
@@ -89,7 +89,7 @@ final class ConditionalSpecialCasing {
8989
};
9090

9191
// A hash table that contains the above entries
92-
static Hashtable<Integer, HashSet<Entry>> entryTable = new Hashtable<>();
92+
private static final HashMap<Integer, HashSet<Entry>> entryTable = new HashMap<>();
9393
static {
9494
// create hashtable from the entry
9595
for (Entry cur : entry) {

0 commit comments

Comments
 (0)