You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by gd...@apache.org on 2001/07/15 19:06:16 UTC

cvs commit: xml-axis/java/src/org/apache/axis/message SymbolTable.java

gdaniels    01/07/15 10:06:16

  Modified:    java/src/org/apache/axis/message SymbolTable.java
  Log:
  *** JAMES : Never mind. :)
  
  Replace the original symbol-mangling code, which seems to work now.
  
  I guess the original problem was actually just the recorder trying to
  replay the characters event with a start offset greater than zero.  Since
  we're returning Strings anyway, we always need to start the char buf
  from zero.
  
  Revision  Changes    Path
  1.2       +0 -14     xml-axis/java/src/org/apache/axis/message/SymbolTable.java
  
  Index: SymbolTable.java
  ===================================================================
  RCS file: /home/cvs/xml-axis/java/src/org/apache/axis/message/SymbolTable.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- SymbolTable.java	2001/07/15 16:40:11	1.1
  +++ SymbolTable.java	2001/07/15 17:06:16	1.2
  @@ -16,20 +16,10 @@
       public ArrayList list = new ArrayList();
       
       public String getSymbol(int bucket) {
  -        return (String)list.get(bucket);
  -        /*
           return fBuckets[bucket].symbol;
  -        */
       }
       
       public int addSymbol(String symbol) {
  -        int ret = list.indexOf(symbol);
  -        if (ret == -1) {
  -            list.add(symbol);
  -            ret = list.size() - 1;
  -        }
  -        return ret;
  -        /*
           int bucket = hash(symbol) % TABLE_SIZE;
           int n = 0;
           OUTER: for (Entry entry = fBuckets[bucket]; entry != null; entry = entry.next) {
  @@ -47,11 +37,8 @@
           Entry entry = new Entry(symbol, fBuckets[bucket]);
           fBuckets[bucket] = entry;
           return bucket;
  -        */
       }
       public int addSymbol(char[] buffer, int offset, int length) {
  -        return addSymbol(new String(buffer, offset, length));
  -        /*
           int bucket = hash(buffer, offset, length) % TABLE_SIZE;
           int n = 0;
           OUTER: for (Entry entry = fBuckets[bucket]; entry != null; entry = entry.next) {
  @@ -68,7 +55,6 @@
           Entry entry = new Entry(buffer, offset, length, fBuckets[bucket]);
           fBuckets[bucket] = entry;
           return bucket;
  -        */
       }
       public int hash(String symbol) {
           int code = 0;