[Mulgara-svn] r1074 - trunk/src/jar/query/java/org/mulgara/query/rdf

pag at mulgara.org pag at mulgara.org
Wed Jul 9 22:16:48 UTC 2008


Author: pag
Date: 2008-07-09 15:16:48 -0700 (Wed, 09 Jul 2008)
New Revision: 1074

Modified:
   trunk/src/jar/query/java/org/mulgara/query/rdf/BlankNodeImpl.java
Log:
Reformat and remove warnings

Modified: trunk/src/jar/query/java/org/mulgara/query/rdf/BlankNodeImpl.java
===================================================================
--- trunk/src/jar/query/java/org/mulgara/query/rdf/BlankNodeImpl.java	2008-07-09 22:15:51 UTC (rev 1073)
+++ trunk/src/jar/query/java/org/mulgara/query/rdf/BlankNodeImpl.java	2008-07-09 22:16:48 UTC (rev 1074)
@@ -30,14 +30,10 @@
 // Java 2 standard packages
 import java.io.Serializable;
 
-// Third party packages
-import org.apache.log4j.Logger;
-
 // JRDF
 import org.jrdf.graph.*;
 
 //Local packages
-import org.mulgara.query.ConstraintElement;
 import org.mulgara.query.Value;
 
 /**
@@ -60,11 +56,8 @@
  */
 public class BlankNodeImpl
     extends AbstractBlankNode
-    implements Comparable, BlankNode, Value, Serializable {
+    implements Comparable<Node>, BlankNode, Value, Serializable {
 
-  /** Logger.  */
-  private static final Logger logger = Logger.getLogger(BlankNodeImpl.class.getName());
-
   /**
    * Allow newer compiled version of the stub to operate when changes
    * have not occurred with the class.
@@ -73,9 +66,7 @@
    */
   static final long serialVersionUID = -3557083462564312948L;
 
-  /**
-   * The unique node id for the blank node.
-   */
+  /** The unique node id for the blank node. */
   private long nodeId;
 
   private String stringValue;
@@ -84,10 +75,9 @@
    * Create an empty blank node.  Just a place holder.
    */
   public BlankNodeImpl() {
-
     // Do nothing
     this(0);
-	stringValue = "node0";
+    stringValue = "node0";
   }
 
   /**
@@ -96,7 +86,6 @@
    * @param newNodeId the unique node id.
    */
   public BlankNodeImpl(long newNodeId) {
-
     nodeId = newNodeId;
     stringValue = "node" + nodeId;
   }
@@ -127,8 +116,7 @@
    * @param object the RDF object to compare.
    * @return -1 if Literal or URIReference otherwise performance comparTo.
    */
-  public int compareTo(java.lang.Object object) {
-
+  public int compareTo(Node object) {
     if (object instanceof Literal) {
       return -1;
     } else if (object instanceof URIReference) {
@@ -167,12 +155,10 @@
    * @return the string value of the uri and node id.
    */
   public String toString() {
-
     return "_node" + nodeId;
   }
 
   public String getID() {
-
     return stringValue;
   }
 }




More information about the Mulgara-svn mailing list