pbwest 2004/01/01 15:59:30 Modified: src/java/org/apache/fop/fo Tag: FOP_0-20-0_Alt-Design PropNames.java Log: Adjusted HashMap initial size. Revision Changes Path No revision No revision 1.1.2.2 +5 -4 xml-fop/src/java/org/apache/fop/fo/Attic/PropNames.java Index: PropNames.java =================================================================== RCS file: /home/cvs/xml-fop/src/java/org/apache/fop/fo/Attic/PropNames.java,v retrieving revision 1.1.2.1 retrieving revision 1.1.2.2 diff -u -r1.1.2.1 -r1.1.2.2 --- PropNames.java 5 Jul 2003 19:26:05 -0000 1.1.2.1 +++ PropNames.java 1 Jan 2004 23:59:30 -0000 1.1.2.2 @@ -790,7 +790,8 @@ */ private static final HashMap toIndex; static { - toIndex = new HashMap(LAST_PROPERTY_INDEX + 1); + toIndex = new HashMap( + (int)((LAST_PROPERTY_INDEX + 1) / 0.75) + 1); // Set up the toIndex Hashmap with the name of the // property as a key, and the integer index as a value for (int i = 0; i <= LAST_PROPERTY_INDEX; i++) {
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]