src/com/sun/org/apache/xerces/internal/xpointer/XPointerHandler.java

Print this page

        

*** 522,536 **** * Add the specified string as a token * * @param token The token string */ private void addToken(String tokenStr) { ! if (!fTokenNames.containsValue(tokenStr)) { ! Integer tokenInt = new Integer(fTokenNames.size()); fTokenNames.put(tokenInt, tokenStr); - addToken(tokenInt.intValue()); } } /** * Add the specified int token * --- 522,538 ---- * Add the specified string as a token * * @param token The token string */ private void addToken(String tokenStr) { ! String str = fTokenNames.get(tokenStr); ! Integer tokenInt = str == null ? null : Integer.parseInt(str); ! if (tokenInt == null) { ! tokenInt = new Integer(fTokenNames.size()); fTokenNames.put(tokenInt, tokenStr); } + addToken(tokenInt.intValue()); } /** * Add the specified int token *