You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xerces.apache.org by je...@locus.apache.org on 2000/02/07 18:44:40 UTC

cvs commit: xml-xerces/java/src/org/apache/xerces/utils StringPool.java SymbolCache.java

jeffreyr    00/02/07 09:44:40

  Modified:    java/src/org/apache/xerces/utils StringPool.java
                        SymbolCache.java
  Log:
  Localize ExceptionMessages for org.apache.xerces.utils
  
  Revision  Changes    Path
  1.4       +2 -2      xml-xerces/java/src/org/apache/xerces/utils/StringPool.java
  
  Index: StringPool.java
  ===================================================================
  RCS file: /home/cvs/xml-xerces/java/src/org/apache/xerces/utils/StringPool.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- StringPool.java	1999/11/29 18:05:04	1.3
  +++ StringPool.java	2000/02/07 17:44:39	1.4
  @@ -143,7 +143,7 @@
       public StringPool() {
           fSymbolCache = new SymbolCache();
           if (addSymbol("") != EMPTY_STRING)
  -            throw new RuntimeException("cannot happen 20");
  +            throw new RuntimeException("UTL001 cannot happen 20");
       }
       //
       //
  @@ -171,7 +171,7 @@
           fSymbolCache.reset();
           fShuffleCount = 0;
           if (addSymbol("") != EMPTY_STRING)
  -            throw new RuntimeException("cannot happen 21");
  +            throw new RuntimeException("UTL002 cannot happen 21");
       }
       //
       // String interfaces
  
  
  
  1.2       +2 -2      xml-xerces/java/src/org/apache/xerces/utils/SymbolCache.java
  
  Index: SymbolCache.java
  ===================================================================
  RCS file: /home/cvs/xml-xerces/java/src/org/apache/xerces/utils/SymbolCache.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- SymbolCache.java	1999/11/09 01:12:25	1.1
  +++ SymbolCache.java	2000/02/07 17:44:39	1.2
  @@ -102,7 +102,7 @@
           try {
               entries[offset + SymbolCache.INDEX_OFFSET] = symbolHandle;
           } catch (ArrayIndexOutOfBoundsException ex) {
  -            throw new RuntimeException("untested 1");
  +            throw new RuntimeException("UTL003 untested 1");
           }
           return str;
       }
  @@ -170,7 +170,7 @@
                       }
                   } else {
                       entries = fCacheLines[entry];
  -                    throw new RuntimeException("untested 2");
  +                    throw new RuntimeException("UTL004 untested 2");
                   }
               }
               count = entries[0];