[Mulgara-svn] r1637 - trunk/src/jar/store-stringpool-xa/java/org/mulgara/store/stringpool/xa

pag at mulgara.org pag at mulgara.org
Thu Mar 26 19:55:02 UTC 2009


Author: pag
Date: 2009-03-26 12:55:01 -0700 (Thu, 26 Mar 2009)
New Revision: 1637

Modified:
   trunk/src/jar/store-stringpool-xa/java/org/mulgara/store/stringpool/xa/XAStringPoolImpl.java
Log:
Fixed bad javadoc, suppressed warnings on useful but unused fields, and added generics

Modified: trunk/src/jar/store-stringpool-xa/java/org/mulgara/store/stringpool/xa/XAStringPoolImpl.java
===================================================================
--- trunk/src/jar/store-stringpool-xa/java/org/mulgara/store/stringpool/xa/XAStringPoolImpl.java	2009-03-26 19:53:57 UTC (rev 1636)
+++ trunk/src/jar/store-stringpool-xa/java/org/mulgara/store/stringpool/xa/XAStringPoolImpl.java	2009-03-26 19:55:01 UTC (rev 1637)
@@ -1115,7 +1115,7 @@
 
 
     /**
-     * @see org.mulgara.store.stringpool.StringPool#put(org.mulgara.store.stringpool.SPObject)
+     * @see org.mulgara.store.stringpool.StringPool#put(long, SPObject)
      */
     public long put(SPObject spObject) {
       throw new UnsupportedOperationException("Trying to modify a read-only string pool.");
@@ -2264,9 +2264,11 @@
     final class GNodeTuplesImpl implements Tuples {
 
       // Defines the constraining type.
+      @SuppressWarnings("unused")
       private SPObject.TypeCategory typeCategory;
 
       // Defines the constraining type.
+      @SuppressWarnings("unused")
       private int typeId;
 
       // The low value of the range (inclusive) or null to indicate the lowest
@@ -2465,8 +2467,8 @@
         return null;
       }
 
-      public java.util.List getOperands() {
-        return java.util.Collections.EMPTY_LIST;
+      public java.util.List<Tuples> getOperands() {
+        return java.util.Collections.emptyList();
       }
 
       public void beforeFirst(long[] prefix, int suffixTruncation) throws TuplesException {
@@ -2647,7 +2649,7 @@
       /**
        * Copied from AbstractTuples
        */
-      public Annotation getAnnotation(Class annotationClass) throws TuplesException {
+      public Annotation getAnnotation(Class<? extends Annotation> annotationClass) throws TuplesException {
         return null;
       }
     }
@@ -2957,7 +2959,7 @@
 
     public synchronized boolean isBlankNode(Long gNodeL) {
       assert gNodeL != null;
-      Cache cache = getCache();
+      Cache<Long,SPObject> cache = getCache();
       return cache.containsKey(gNodeL) && cache.get(gNodeL) == null;
     }
 




More information about the Mulgara-svn mailing list