commonsrdf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From st...@apache.org
Subject [10/13] incubator-commonsrdf git commit: COMMONSRDF-6 add createBlankNode Serializable factory example
Date Wed, 29 Apr 2015 10:00:34 GMT
COMMONSRDF-6 add createBlankNode Serializable factory example

Project: http://git-wip-us.apache.org/repos/asf/incubator-commonsrdf/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-commonsrdf/commit/1bd0ae25
Tree: http://git-wip-us.apache.org/repos/asf/incubator-commonsrdf/tree/1bd0ae25
Diff: http://git-wip-us.apache.org/repos/asf/incubator-commonsrdf/diff/1bd0ae25

Branch: refs/heads/master
Commit: 1bd0ae25ec6fec025f5a58a6ce94d5988b13a8c3
Parents: b452cd6
Author: Stian Soiland-Reyes <stain@apache.org>
Authored: Wed Apr 29 10:52:42 2015 +0100
Committer: Stian Soiland-Reyes <stain@apache.org>
Committed: Wed Apr 29 10:52:42 2015 +0100

----------------------------------------------------------------------
 .../main/java/org/apache/commons/rdf/api/RDFTermFactory.java    | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-commonsrdf/blob/1bd0ae25/api/src/main/java/org/apache/commons/rdf/api/RDFTermFactory.java
----------------------------------------------------------------------
diff --git a/api/src/main/java/org/apache/commons/rdf/api/RDFTermFactory.java b/api/src/main/java/org/apache/commons/rdf/api/RDFTermFactory.java
index 2ba4e0e..2801814 100644
--- a/api/src/main/java/org/apache/commons/rdf/api/RDFTermFactory.java
+++ b/api/src/main/java/org/apache/commons/rdf/api/RDFTermFactory.java
@@ -17,6 +17,7 @@
  */
 package org.apache.commons.rdf.api;
 
+import java.io.Serializable;
 import java.util.Locale;
 
 /**
@@ -67,7 +68,9 @@ public interface RDFTermFactory {
      * The returned BlankNode SHOULD NOT be equivalent to any BlankNodes created
      * on a <em>different</em> <code>RDFTermFactory</code> instance,
e.g.
      * different instances of <code>RDFTermFactory</code> should produce
-     * different blank nodes for the same <code>name</code>.
+     * different blank nodes for the same <code>name</code> unless they
+     * purposely are intending to create equivalent {@link BlankNode}
+     * instances (e.g. a reinstated {@link Serializable} factory).
      *
      * @param name
      *            A non-empty, non-null, String that is unique to this blank


Mime
View raw message