jdk/src/share/classes/javax/swing/text/html/parser/DTD.java
changeset 438 2ae294e4518c
parent 2 90ce3da70b43
child 1287 a04aca99c77a
child 715 f16baef3a20e
--- a/jdk/src/share/classes/javax/swing/text/html/parser/DTD.java	Fri Apr 04 20:32:59 2008 +0400
+++ b/jdk/src/share/classes/javax/swing/text/html/parser/DTD.java	Mon Apr 07 14:53:51 2008 +0400
@@ -113,7 +113,7 @@
      *    <code>ch</code> character
      */
     public Entity getEntity(int ch) {
-        return (Entity)entityHash.get(new Integer(ch));
+        return (Entity)entityHash.get(Integer.valueOf(ch));
     }
 
     /**
@@ -178,7 +178,7 @@
                 switch (type & ~GENERAL) {
                   case CDATA:
                   case SDATA:
-                    entityHash.put(new Integer(data[0]), ent);
+                      entityHash.put(Integer.valueOf(data[0]), ent);
                     break;
                 }
             }