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

Print this page

        

*** 557,571 **** * 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 * --- 557,573 ---- * 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 *