vgritsenko    2004/01/12 17:56:59

  Modified:    java/src/org/apache/xindice/core DocumentCache.java
  Log:
  CacheKey is static
  
  Revision  Changes    Path
  1.13      +4 -4      
xml-xindice/java/src/org/apache/xindice/core/DocumentCache.java
  
  Index: DocumentCache.java
  ===================================================================
  RCS file: 
/home/cvs/xml-xindice/java/src/org/apache/xindice/core/DocumentCache.java,v
  retrieving revision 1.12
  retrieving revision 1.13
  diff -u -r1.12 -r1.13
  --- DocumentCache.java        25 Dec 2003 20:04:40 -0000      1.12
  +++ DocumentCache.java        13 Jan 2004 01:56:59 -0000      1.13
  @@ -185,7 +185,7 @@
       /**
        * CacheKey
        */
  -    private class CacheKey {
  +    private static class CacheKey {
           private Collection col;
           private String strVal;
           private Key key;
  @@ -218,7 +218,7 @@
           }
   
           public boolean equals(Object o) {
  -            return o instanceof CacheKey && col == ((CacheKey) o).col && 
key.equals(((CacheKey) o).key);
  +            return (o instanceof CacheKey) && col == ((CacheKey) o).col && 
key.equals(((CacheKey) o).key);
           }
       }
   }
  
  
  

Reply via email to