< prev index next >
src/java.base/share/classes/java/lang/Character.java
Print this page
rev 12026 : [mq]: 8081027-Create-common-test-to-check-adequacy-of-initial-size
*** 647,660 ****
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);
/**
* Creates a UnicodeBlock with the given identifier name.
* This name must be the same as the block identifier.
*/
--- 647,658 ----
public static final class UnicodeBlock extends Subset {
/**
* 510 - the expected number of enteties
* 0.75 - the default load factor of HashMap
*/
private static Map<String, UnicodeBlock> map =
! 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 >