jena-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From a...@apache.org
Subject [1/8] jena git commit: JENA-987: add a typed constructor, deprecate the (Object) form.
Date Tue, 14 Jul 2015 13:44:26 GMT
Repository: jena
Updated Branches:
  refs/heads/master 843f54c48 -> 5799250b4


JENA-987: add a typed constructor, deprecate the (Object) form.

Project: http://git-wip-us.apache.org/repos/asf/jena/repo
Commit: http://git-wip-us.apache.org/repos/asf/jena/commit/fc598a94
Tree: http://git-wip-us.apache.org/repos/asf/jena/tree/fc598a94
Diff: http://git-wip-us.apache.org/repos/asf/jena/diff/fc598a94

Branch: refs/heads/master
Commit: fc598a94df42e273dbedafdec205b19cf00f5e6b
Parents: 80dbb45
Author: Andy Seaborne <andy@apache.org>
Authored: Mon Jul 13 11:36:19 2015 +0100
Committer: Andy Seaborne <andy@apache.org>
Committed: Mon Jul 13 11:36:19 2015 +0100

----------------------------------------------------------------------
 .../src/main/java/org/apache/jena/graph/Node_Blank.java | 12 ++++++++----
 .../main/java/org/apache/jena/graph/Node_Literal.java   |  5 +++++
 .../src/main/java/org/apache/jena/graph/Node_URI.java   |  5 +++++
 .../main/java/org/apache/jena/graph/Node_Variable.java  |  1 +
 4 files changed, 19 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/jena/blob/fc598a94/jena-core/src/main/java/org/apache/jena/graph/Node_Blank.java
----------------------------------------------------------------------
diff --git a/jena-core/src/main/java/org/apache/jena/graph/Node_Blank.java b/jena-core/src/main/java/org/apache/jena/graph/Node_Blank.java
index 69d3e80..d1db8e2 100644
--- a/jena-core/src/main/java/org/apache/jena/graph/Node_Blank.java
+++ b/jena-core/src/main/java/org/apache/jena/graph/Node_Blank.java
@@ -18,25 +18,29 @@
 
 package org.apache.jena.graph;
 
-import org.apache.jena.rdf.model.* ;
+
 
 /**
     RDF blank nodes, ie nodes with identity but without URIs.
 */
 
 public class Node_Blank extends Node_Concrete
-    {    
+    {
+    /** @deprecated Use {@link Node_Blank#BlankNodeId} */
+    @Deprecated
     /* package */ Node_Blank( Object id ) { super( id ); }
 
+    /* package */ Node_Blank( BlankNodeId id ) { super( id ); } 
+
     @Override
     public boolean isBlank() { return true; }
 
     @Override
-    public AnonId getBlankNodeId()  { return (AnonId) label; }
+    public BlankNodeId getBlankNodeId()  { return (BlankNodeId) label; }
     
     @Override
     public Object visitWith( NodeVisitor v )
-        { return v.visitBlank( this, (AnonId) label ); }
+        { return v.visitBlank( this, (BlankNodeId) label ); }
     
     @Override
     public boolean equals( Object other )

http://git-wip-us.apache.org/repos/asf/jena/blob/fc598a94/jena-core/src/main/java/org/apache/jena/graph/Node_Literal.java
----------------------------------------------------------------------
diff --git a/jena-core/src/main/java/org/apache/jena/graph/Node_Literal.java b/jena-core/src/main/java/org/apache/jena/graph/Node_Literal.java
index d2e72a2..476ffb3 100644
--- a/jena-core/src/main/java/org/apache/jena/graph/Node_Literal.java
+++ b/jena-core/src/main/java/org/apache/jena/graph/Node_Literal.java
@@ -27,9 +27,14 @@ import org.apache.jena.shared.* ;
 */
 public class Node_Literal extends Node_Concrete
 {
+    /** @deprecated Use {@code Node_Literal(LiteralLabel)} */
+    @Deprecated
     /* package */ Node_Literal( Object label )
         { super( label ); }
 
+    /* package */ Node_Literal( LiteralLabel label )
+        { super( label ); }
+
     @Override
     public LiteralLabel getLiteral()
         { return (LiteralLabel) label; }

http://git-wip-us.apache.org/repos/asf/jena/blob/fc598a94/jena-core/src/main/java/org/apache/jena/graph/Node_URI.java
----------------------------------------------------------------------
diff --git a/jena-core/src/main/java/org/apache/jena/graph/Node_URI.java b/jena-core/src/main/java/org/apache/jena/graph/Node_URI.java
index 331a383..3db28bc 100644
--- a/jena-core/src/main/java/org/apache/jena/graph/Node_URI.java
+++ b/jena-core/src/main/java/org/apache/jena/graph/Node_URI.java
@@ -26,9 +26,14 @@ import org.apache.jena.shared.* ;
 */
 public class Node_URI extends Node_Concrete
     {    
+    /** @deprecated Use {@code Node_URI(String)} */
+    @Deprecated
     protected Node_URI( Object uri )
         { super( uri ); }
 
+    protected Node_URI( String uri )
+        { super( uri ); }
+
     @Override
     public String getURI()
         { return (String) label; }

http://git-wip-us.apache.org/repos/asf/jena/blob/fc598a94/jena-core/src/main/java/org/apache/jena/graph/Node_Variable.java
----------------------------------------------------------------------
diff --git a/jena-core/src/main/java/org/apache/jena/graph/Node_Variable.java b/jena-core/src/main/java/org/apache/jena/graph/Node_Variable.java
index 50d2491..aa10279 100644
--- a/jena-core/src/main/java/org/apache/jena/graph/Node_Variable.java
+++ b/jena-core/src/main/java/org/apache/jena/graph/Node_Variable.java
@@ -30,6 +30,7 @@ public class Node_Variable extends Node_Fluid
          Initialise this Node_Variable with a name object (which should be a
          VariableName object).
     */
+    @Deprecated
     protected Node_Variable( Object name )
         { super( name ); }
     


Mime
View raw message