[Thinlet-development] thinlet/src/java/thinlet Thinlet.java,1.24,1.25
Brought to you by:
bajzat
From: Andrzej B. <ab...@us...> - 2005-01-21 16:30:38
|
Update of /cvsroot/thinlet/thinlet/src/java/thinlet In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv21423 Modified Files: Thinlet.java Log Message: (This patch was supposed to go with the previous commit.. Sorry!) * Remove the use of String.intern() - MIDP API doesn't have this. Since we now compare the values of Object.toString() and not Object references this is not needed now. Index: Thinlet.java =================================================================== RCS file: /cvsroot/thinlet/thinlet/src/java/thinlet/Thinlet.java,v retrieving revision 1.24 retrieving revision 1.25 diff -u -d -r1.24 -r1.25 --- Thinlet.java 21 Jan 2005 16:22:08 -0000 1.24 +++ Thinlet.java 21 Jan 2005 16:30:28 -0000 1.25 @@ -5808,7 +5808,7 @@ * @return the value, or null */ protected static String getDOMAttribute(Object node, String key) { - return (String) get(node, key.intern()); + return (String) get(node, key); } /** @@ -5829,7 +5829,7 @@ * @return the number of tags */ protected static int getDOMCount(Object node, String key) { - return getItemCountImpl(node, key.intern()); + return getItemCountImpl(node, key); } /** @@ -5841,7 +5841,7 @@ * @return the found tag, or null */ protected static Object getDOMNode(Object node, String key, int index) { - return getItemImpl(node, key.intern(), index); + return getItemImpl(node, key, index); } /** @@ -5953,7 +5953,7 @@ } else { if (dom) { Object parent = current; - current = createImpl(tagname = tagname.intern()); + current = createImpl(tagname); if (parent != null) { insertItem(parent, tagname, current, -1); //set(current, ":parent", parent); @@ -6036,7 +6036,7 @@ addAttribute(current, key, text.toString(), methods); } else { if (dom) { - set(current, key.intern(), text.toString()); + set(current, key, text.toString()); } else { if (attributelist == null) { attributelist = new Hashtable(); |