< prev index next >

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

Print this page
rev 12008 : [mq]: XXXXXXX-Remove-INITIAL_CAPACITY-constant

@@ -647,14 +647,12 @@
     public static final class UnicodeBlock extends Subset {
         /**
          * 510  - the expected number of enteties
          * 0.75 - the default load factor of HashMap
          */
-        private static final int INITIAL_CAPACITY =
-                (int)(510 / 0.75f + 1.0f);
         private static Map<String, UnicodeBlock> map =
-                new HashMap<>(INITIAL_CAPACITY);
+                new HashMap<>((int)(510 / 0.75f + 1.0f));
 
         /**
          * Creates a UnicodeBlock with the given identifier name.
          * This name must be the same as the block identifier.
          */
< prev index next >