commonsrdf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ggreg...@apache.org
Subject incubator-commonsrdf git commit: Add missing '@Override' annotations.
Date Fri, 11 Nov 2016 22:40:30 GMT
Repository: incubator-commonsrdf
Updated Branches:
  refs/heads/master 3fad87875 -> e36c67a6f


Add missing '@Override' annotations.

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

Branch: refs/heads/master
Commit: e36c67a6f8269cada8754fce853f54b363a420ec
Parents: 3fad878
Author: Gary Gregory <ggregory@apache.org>
Authored: Fri Nov 11 14:40:26 2016 -0800
Committer: Gary Gregory <ggregory@apache.org>
Committed: Fri Nov 11 14:40:26 2016 -0800

----------------------------------------------------------------------
 api/src/main/java/org/apache/commons/rdf/api/Dataset.java |  7 +++++++
 api/src/main/java/org/apache/commons/rdf/api/Graph.java   |  7 +++++++
 api/src/main/java/org/apache/commons/rdf/api/Quad.java    |  4 ++++
 api/src/main/java/org/apache/commons/rdf/api/Triple.java  |  3 +++
 .../commons/rdf/jena/experimental/JenaRDFParser.java      |  1 +
 .../apache/commons/rdf/jena/impl/AbstractJenaRDFTerm.java |  1 +
 .../apache/commons/rdf/jsonldjava/JsonLdGraphLike.java    |  1 +
 .../org/apache/commons/rdf/jsonldjava/JsonLdQuadLike.java |  1 +
 .../org/apache/commons/rdf/jsonldjava/JsonLdTerm.java     |  1 +
 .../commons/rdf/rdf4j/experimental/RDF4JParser.java       |  2 ++
 .../apache/commons/rdf/rdf4j/impl/AbstractRDFTerm.java    |  1 +
 .../rdf/rdf4j/impl/AbstractRepositoryGraphLike.java       |  1 +
 .../org/apache/commons/rdf/rdf4j/impl/BlankNodeImpl.java  |  1 +
 .../java/org/apache/commons/rdf/rdf4j/impl/IRIImpl.java   |  1 +
 .../org/apache/commons/rdf/rdf4j/impl/LiteralImpl.java    |  1 +
 .../org/apache/commons/rdf/rdf4j/impl/ModelGraphImpl.java |  1 +
 .../org/apache/commons/rdf/rdf4j/MemoryGraphTest.java     | 10 ++++++++++
 .../apache/commons/rdf/rdf4j/NativeStoreGraphTest.java    |  8 ++++++++
 .../apache/commons/rdf/simple/SimpleRDFTermFactory.java   |  8 ++++++++
 19 files changed, 60 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-commonsrdf/blob/e36c67a6/api/src/main/java/org/apache/commons/rdf/api/Dataset.java
----------------------------------------------------------------------
diff --git a/api/src/main/java/org/apache/commons/rdf/api/Dataset.java b/api/src/main/java/org/apache/commons/rdf/api/Dataset.java
index fec4239..26179d8 100644
--- a/api/src/main/java/org/apache/commons/rdf/api/Dataset.java
+++ b/api/src/main/java/org/apache/commons/rdf/api/Dataset.java
@@ -40,6 +40,7 @@ public interface Dataset extends AutoCloseable, GraphLike<Quad> {
      * @param quad
      *            The quad to add
      */
+    @Override
     void add(Quad quad);
 
     /**
@@ -65,6 +66,7 @@ public interface Dataset extends AutoCloseable, GraphLike<Quad> {
      *            The quad to check.
      * @return True if the dataset contains the given Quad.
      */
+    @Override
     boolean contains(Quad quad);
 
     /**
@@ -171,6 +173,7 @@ public interface Dataset extends AutoCloseable, GraphLike<Quad>
{
      * @param quad
      *            quad to remove
      */
+    @Override
     void remove(Quad quad);
 
     /**
@@ -192,6 +195,7 @@ public interface Dataset extends AutoCloseable, GraphLike<Quad>
{
     /**
      * Clear the dataset, removing all quads.
      */
+    @Override
     void clear();
 
     /**
@@ -202,6 +206,7 @@ public interface Dataset extends AutoCloseable, GraphLike<Quad>
{
      *
      * @return The number of quads in the dataset
      */
+    @Override
     long size();
 
     /**
@@ -219,6 +224,7 @@ public interface Dataset extends AutoCloseable, GraphLike<Quad>
{
      *
      * @return A {@link Stream} over all of the quads in the dataset
      */
+    @Override
     Stream<? extends Quad> stream();
 
     /**
@@ -284,6 +290,7 @@ public interface Dataset extends AutoCloseable, GraphLike<Quad>
{
      *             if a concurrency conflict occurs while the Iterator is
      *             active.
      */
+    @Override
     @SuppressWarnings("unchecked")
     default Iterable<Quad> iterate() throws ConcurrentModificationException, IllegalStateException
{
         return ((Stream<Quad>) stream())::iterator;

http://git-wip-us.apache.org/repos/asf/incubator-commonsrdf/blob/e36c67a6/api/src/main/java/org/apache/commons/rdf/api/Graph.java
----------------------------------------------------------------------
diff --git a/api/src/main/java/org/apache/commons/rdf/api/Graph.java b/api/src/main/java/org/apache/commons/rdf/api/Graph.java
index 8524403..056d393 100644
--- a/api/src/main/java/org/apache/commons/rdf/api/Graph.java
+++ b/api/src/main/java/org/apache/commons/rdf/api/Graph.java
@@ -38,6 +38,7 @@ public interface Graph extends AutoCloseable, GraphLike<Triple> {
      * @param triple
      *            The triple to add
      */
+    @Override
     void add(Triple triple);
 
     /**
@@ -60,6 +61,7 @@ public interface Graph extends AutoCloseable, GraphLike<Triple> {
      *            The triple to check.
      * @return True if the Graph contains the given Triple.
      */
+    @Override
     boolean contains(Triple triple);
 
     /**
@@ -98,6 +100,7 @@ public interface Graph extends AutoCloseable, GraphLike<Triple> {
      * @param triple
      *            triple to remove
      */
+    @Override
     void remove(Triple triple);
 
     /**
@@ -115,6 +118,7 @@ public interface Graph extends AutoCloseable, GraphLike<Triple>
{
     /**
      * Clear the graph, removing all triples.
      */
+    @Override
     void clear();
 
     /**
@@ -125,6 +129,7 @@ public interface Graph extends AutoCloseable, GraphLike<Triple>
{
      *
      * @return The number of triples in the graph
      */
+    @Override
     long size();
 
     /**
@@ -143,6 +148,7 @@ public interface Graph extends AutoCloseable, GraphLike<Triple>
{
      * @since 0.3.0-incubating
      * @return A {@link Stream} over all of the triples in the graph
      */
+    @Override
     Stream<? extends Triple> stream();
 
     /**
@@ -233,6 +239,7 @@ public interface Graph extends AutoCloseable, GraphLike<Triple>
{
      *             if a concurrency conflict occurs while the Iterator is
      *             active.
      */
+    @Override
     @SuppressWarnings("unchecked")
     default Iterable<Triple> iterate() throws ConcurrentModificationException, IllegalStateException
{
         return ((Stream<Triple>) stream())::iterator;

http://git-wip-us.apache.org/repos/asf/incubator-commonsrdf/blob/e36c67a6/api/src/main/java/org/apache/commons/rdf/api/Quad.java
----------------------------------------------------------------------
diff --git a/api/src/main/java/org/apache/commons/rdf/api/Quad.java b/api/src/main/java/org/apache/commons/rdf/api/Quad.java
index 7fab357..b0cd65e 100644
--- a/api/src/main/java/org/apache/commons/rdf/api/Quad.java
+++ b/api/src/main/java/org/apache/commons/rdf/api/Quad.java
@@ -78,6 +78,7 @@ public interface Quad extends QuadLike<BlankNodeOrIRI> {
      * @see <a href="https://www.w3.org/TR/rdf11-concepts/#dfn-rdf-dataset">RDF-
      *      1.1 Dataset</a>
      */
+    @Override
     Optional<BlankNodeOrIRI> getGraphName();
 
     /**
@@ -89,6 +90,7 @@ public interface Quad extends QuadLike<BlankNodeOrIRI> {
      * @see <a href="http://www.w3.org/TR/rdf11-concepts/#dfn-subject">RDF-1.1
      *      Triple subject</a>
      */
+    @Override
     BlankNodeOrIRI getSubject();
 
     /**
@@ -98,6 +100,7 @@ public interface Quad extends QuadLike<BlankNodeOrIRI> {
      * @see <a href="http://www.w3.org/TR/rdf11-concepts/#dfn-predicate">RDF-1.1
      *      Triple predicate</a>
      */
+    @Override
     IRI getPredicate();
 
     /**
@@ -109,6 +112,7 @@ public interface Quad extends QuadLike<BlankNodeOrIRI> {
      * @see <a href="http://www.w3.org/TR/rdf11-concepts/#dfn-object">RDF-1.1
      *      Triple object</a>
      */
+    @Override
     RDFTerm getObject();
 
     /**

http://git-wip-us.apache.org/repos/asf/incubator-commonsrdf/blob/e36c67a6/api/src/main/java/org/apache/commons/rdf/api/Triple.java
----------------------------------------------------------------------
diff --git a/api/src/main/java/org/apache/commons/rdf/api/Triple.java b/api/src/main/java/org/apache/commons/rdf/api/Triple.java
index 7772851..0dab59f 100644
--- a/api/src/main/java/org/apache/commons/rdf/api/Triple.java
+++ b/api/src/main/java/org/apache/commons/rdf/api/Triple.java
@@ -64,6 +64,7 @@ public interface Triple extends TripleLike {
      * @see <a href="http://www.w3.org/TR/rdf11-concepts/#dfn-subject">RDF-1.1
      *      Triple subject</a>
      */
+    @Override
     BlankNodeOrIRI getSubject();
 
     /**
@@ -73,6 +74,7 @@ public interface Triple extends TripleLike {
      * @see <a href="http://www.w3.org/TR/rdf11-concepts/#dfn-predicate">RDF-1.1
      *      Triple predicate</a>
      */
+    @Override
     IRI getPredicate();
 
     /**
@@ -84,6 +86,7 @@ public interface Triple extends TripleLike {
      * @see <a href="http://www.w3.org/TR/rdf11-concepts/#dfn-object">RDF-1.1
      *      Triple object</a>
      */
+    @Override
     RDFTerm getObject();
 
     /**

http://git-wip-us.apache.org/repos/asf/incubator-commonsrdf/blob/e36c67a6/jena/src/main/java/org/apache/commons/rdf/jena/experimental/JenaRDFParser.java
----------------------------------------------------------------------
diff --git a/jena/src/main/java/org/apache/commons/rdf/jena/experimental/JenaRDFParser.java
b/jena/src/main/java/org/apache/commons/rdf/jena/experimental/JenaRDFParser.java
index bf2b4bf..fa3f4b3 100644
--- a/jena/src/main/java/org/apache/commons/rdf/jena/experimental/JenaRDFParser.java
+++ b/jena/src/main/java/org/apache/commons/rdf/jena/experimental/JenaRDFParser.java
@@ -43,6 +43,7 @@ public class JenaRDFParser extends AbstractRDFParser<JenaRDFParser>
implements R
     private Consumer<TripleLike> generalizedConsumerTriple;
     private Consumer<QuadLike<RDFTerm>> generalizedConsumerQuad;
 
+    @Override
     protected RDF createRDFTermFactory() {
         return new JenaRDF();
     }

http://git-wip-us.apache.org/repos/asf/incubator-commonsrdf/blob/e36c67a6/jena/src/main/java/org/apache/commons/rdf/jena/impl/AbstractJenaRDFTerm.java
----------------------------------------------------------------------
diff --git a/jena/src/main/java/org/apache/commons/rdf/jena/impl/AbstractJenaRDFTerm.java
b/jena/src/main/java/org/apache/commons/rdf/jena/impl/AbstractJenaRDFTerm.java
index a4e3f1e..cd370f8 100644
--- a/jena/src/main/java/org/apache/commons/rdf/jena/impl/AbstractJenaRDFTerm.java
+++ b/jena/src/main/java/org/apache/commons/rdf/jena/impl/AbstractJenaRDFTerm.java
@@ -36,6 +36,7 @@ class AbstractJenaRDFTerm implements JenaRDFTerm, RDFTerm {
         return node;
     }
 
+    @Override
     public String ntriplesString() {
         return NodeFmtLib.str(node);
     }

http://git-wip-us.apache.org/repos/asf/incubator-commonsrdf/blob/e36c67a6/jsonld-java/src/main/java/org/apache/commons/rdf/jsonldjava/JsonLdGraphLike.java
----------------------------------------------------------------------
diff --git a/jsonld-java/src/main/java/org/apache/commons/rdf/jsonldjava/JsonLdGraphLike.java
b/jsonld-java/src/main/java/org/apache/commons/rdf/jsonldjava/JsonLdGraphLike.java
index 7b5b3f5..dcc61b2 100644
--- a/jsonld-java/src/main/java/org/apache/commons/rdf/jsonldjava/JsonLdGraphLike.java
+++ b/jsonld-java/src/main/java/org/apache/commons/rdf/jsonldjava/JsonLdGraphLike.java
@@ -143,6 +143,7 @@ abstract class AbstractJsonLdGraphLike<T extends TripleLike> implements
JsonLdGr
         return stream().anyMatch(Predicate.isEqual(tripleOrQuad));
     }
 
+    @Override
     public RDFDataset getRdfDataSet() {
         return rdfDataSet;
     }

http://git-wip-us.apache.org/repos/asf/incubator-commonsrdf/blob/e36c67a6/jsonld-java/src/main/java/org/apache/commons/rdf/jsonldjava/JsonLdQuadLike.java
----------------------------------------------------------------------
diff --git a/jsonld-java/src/main/java/org/apache/commons/rdf/jsonldjava/JsonLdQuadLike.java
b/jsonld-java/src/main/java/org/apache/commons/rdf/jsonldjava/JsonLdQuadLike.java
index 9f92cda..3a55fdb 100644
--- a/jsonld-java/src/main/java/org/apache/commons/rdf/jsonldjava/JsonLdQuadLike.java
+++ b/jsonld-java/src/main/java/org/apache/commons/rdf/jsonldjava/JsonLdQuadLike.java
@@ -68,6 +68,7 @@ class JsonLdQuadLikeImpl<S extends RDFTerm, P extends RDFTerm, O extends
RDFTerm
         return (O) rdfTermFactory.asRDFTerm(quad.getObject(), blankNodePrefix);
     }
 
+    @Override
     public Quad asJsonLdQuad() {
         return quad;
     }

http://git-wip-us.apache.org/repos/asf/incubator-commonsrdf/blob/e36c67a6/jsonld-java/src/main/java/org/apache/commons/rdf/jsonldjava/JsonLdTerm.java
----------------------------------------------------------------------
diff --git a/jsonld-java/src/main/java/org/apache/commons/rdf/jsonldjava/JsonLdTerm.java b/jsonld-java/src/main/java/org/apache/commons/rdf/jsonldjava/JsonLdTerm.java
index ac279a5..3600a27 100644
--- a/jsonld-java/src/main/java/org/apache/commons/rdf/jsonldjava/JsonLdTerm.java
+++ b/jsonld-java/src/main/java/org/apache/commons/rdf/jsonldjava/JsonLdTerm.java
@@ -38,6 +38,7 @@ abstract class JsonLdTermImpl implements JsonLdTerm {
         this.node = node;
     }
 
+    @Override
     public Node asJsonLdNode() {
         return node;
     }

http://git-wip-us.apache.org/repos/asf/incubator-commonsrdf/blob/e36c67a6/rdf4j/src/main/java/org/apache/commons/rdf/rdf4j/experimental/RDF4JParser.java
----------------------------------------------------------------------
diff --git a/rdf4j/src/main/java/org/apache/commons/rdf/rdf4j/experimental/RDF4JParser.java
b/rdf4j/src/main/java/org/apache/commons/rdf/rdf4j/experimental/RDF4JParser.java
index 87328cd..bbbda84 100644
--- a/rdf4j/src/main/java/org/apache/commons/rdf/rdf4j/experimental/RDF4JParser.java
+++ b/rdf4j/src/main/java/org/apache/commons/rdf/rdf4j/experimental/RDF4JParser.java
@@ -66,6 +66,7 @@ public class RDF4JParser extends AbstractRDFParser<RDF4JParser> implements
RDFPa
             this.quadTarget = quadTarget;
         }
 
+        @Override
         public void handleStatement(org.eclipse.rdf4j.model.Statement st)
                 throws org.eclipse.rdf4j.rio.RDFHandlerException {
             // TODO: if getRdfTermFactory() is a non-rdf4j factory, should
@@ -90,6 +91,7 @@ public class RDF4JParser extends AbstractRDFParser<RDF4JParser> implements
RDFPa
             this.model = model;
         }
 
+        @Override
         public void handleStatement(org.eclipse.rdf4j.model.Statement st)
                 throws org.eclipse.rdf4j.rio.RDFHandlerException {
             model.add(st);

http://git-wip-us.apache.org/repos/asf/incubator-commonsrdf/blob/e36c67a6/rdf4j/src/main/java/org/apache/commons/rdf/rdf4j/impl/AbstractRDFTerm.java
----------------------------------------------------------------------
diff --git a/rdf4j/src/main/java/org/apache/commons/rdf/rdf4j/impl/AbstractRDFTerm.java b/rdf4j/src/main/java/org/apache/commons/rdf/rdf4j/impl/AbstractRDFTerm.java
index 7fce346..3262d01 100644
--- a/rdf4j/src/main/java/org/apache/commons/rdf/rdf4j/impl/AbstractRDFTerm.java
+++ b/rdf4j/src/main/java/org/apache/commons/rdf/rdf4j/impl/AbstractRDFTerm.java
@@ -27,6 +27,7 @@ abstract class AbstractRDFTerm<T extends Value> implements RDF4JTerm
{
         this.value = value;
     }
 
+    @Override
     public T asValue() {
         return value;
     }

http://git-wip-us.apache.org/repos/asf/incubator-commonsrdf/blob/e36c67a6/rdf4j/src/main/java/org/apache/commons/rdf/rdf4j/impl/AbstractRepositoryGraphLike.java
----------------------------------------------------------------------
diff --git a/rdf4j/src/main/java/org/apache/commons/rdf/rdf4j/impl/AbstractRepositoryGraphLike.java
b/rdf4j/src/main/java/org/apache/commons/rdf/rdf4j/impl/AbstractRepositoryGraphLike.java
index 2398194..1a18557 100644
--- a/rdf4j/src/main/java/org/apache/commons/rdf/rdf4j/impl/AbstractRepositoryGraphLike.java
+++ b/rdf4j/src/main/java/org/apache/commons/rdf/rdf4j/impl/AbstractRepositoryGraphLike.java
@@ -63,6 +63,7 @@ abstract class AbstractRepositoryGraphLike<T extends TripleLike> implements
RDF4
         return repository.getConnection();
     }
 
+    @Override
     public Optional<Repository> asRepository() {
         return Optional.of(repository);
     }

http://git-wip-us.apache.org/repos/asf/incubator-commonsrdf/blob/e36c67a6/rdf4j/src/main/java/org/apache/commons/rdf/rdf4j/impl/BlankNodeImpl.java
----------------------------------------------------------------------
diff --git a/rdf4j/src/main/java/org/apache/commons/rdf/rdf4j/impl/BlankNodeImpl.java b/rdf4j/src/main/java/org/apache/commons/rdf/rdf4j/impl/BlankNodeImpl.java
index 6357f8a..c14697c 100644
--- a/rdf4j/src/main/java/org/apache/commons/rdf/rdf4j/impl/BlankNodeImpl.java
+++ b/rdf4j/src/main/java/org/apache/commons/rdf/rdf4j/impl/BlankNodeImpl.java
@@ -38,6 +38,7 @@ final class BlankNodeImpl extends AbstractRDFTerm<BNode> implements
RDF4JBlankNo
         saltUUIDleast = salt.getLeastSignificantBits();
     }
 
+    @Override
     public boolean equals(Object obj) {
         if (obj == this) {
             return true;

http://git-wip-us.apache.org/repos/asf/incubator-commonsrdf/blob/e36c67a6/rdf4j/src/main/java/org/apache/commons/rdf/rdf4j/impl/IRIImpl.java
----------------------------------------------------------------------
diff --git a/rdf4j/src/main/java/org/apache/commons/rdf/rdf4j/impl/IRIImpl.java b/rdf4j/src/main/java/org/apache/commons/rdf/rdf4j/impl/IRIImpl.java
index f566c21..001919b 100644
--- a/rdf4j/src/main/java/org/apache/commons/rdf/rdf4j/impl/IRIImpl.java
+++ b/rdf4j/src/main/java/org/apache/commons/rdf/rdf4j/impl/IRIImpl.java
@@ -46,6 +46,7 @@ final class IRIImpl extends AbstractRDFTerm<org.eclipse.rdf4j.model.IRI>
impleme
         return value.toString();
     }
 
+    @Override
     public int hashCode() {
         // Same definition
         return value.hashCode();

http://git-wip-us.apache.org/repos/asf/incubator-commonsrdf/blob/e36c67a6/rdf4j/src/main/java/org/apache/commons/rdf/rdf4j/impl/LiteralImpl.java
----------------------------------------------------------------------
diff --git a/rdf4j/src/main/java/org/apache/commons/rdf/rdf4j/impl/LiteralImpl.java b/rdf4j/src/main/java/org/apache/commons/rdf/rdf4j/impl/LiteralImpl.java
index 9fa93b1..487cc9b 100644
--- a/rdf4j/src/main/java/org/apache/commons/rdf/rdf4j/impl/LiteralImpl.java
+++ b/rdf4j/src/main/java/org/apache/commons/rdf/rdf4j/impl/LiteralImpl.java
@@ -61,6 +61,7 @@ final class LiteralImpl extends AbstractRDFTerm<org.eclipse.rdf4j.model.Literal>
         return value.getLabel();
     }
 
+    @Override
     public int hashCode() {
         return Objects.hash(value.getLabel(), value.getDatatype(), value.getLanguage());
     }

http://git-wip-us.apache.org/repos/asf/incubator-commonsrdf/blob/e36c67a6/rdf4j/src/main/java/org/apache/commons/rdf/rdf4j/impl/ModelGraphImpl.java
----------------------------------------------------------------------
diff --git a/rdf4j/src/main/java/org/apache/commons/rdf/rdf4j/impl/ModelGraphImpl.java b/rdf4j/src/main/java/org/apache/commons/rdf/rdf4j/impl/ModelGraphImpl.java
index 7debacc..d9ea22a 100644
--- a/rdf4j/src/main/java/org/apache/commons/rdf/rdf4j/impl/ModelGraphImpl.java
+++ b/rdf4j/src/main/java/org/apache/commons/rdf/rdf4j/impl/ModelGraphImpl.java
@@ -58,6 +58,7 @@ final class ModelGraphImpl implements RDF4JGraph {
         model.add(rdf4jTermFactory.asStatement(triple));
     }
 
+    @Override
     public Optional<Model> asModel() {
         return Optional.of(model);
     }

http://git-wip-us.apache.org/repos/asf/incubator-commonsrdf/blob/e36c67a6/rdf4j/src/test/java/org/apache/commons/rdf/rdf4j/MemoryGraphTest.java
----------------------------------------------------------------------
diff --git a/rdf4j/src/test/java/org/apache/commons/rdf/rdf4j/MemoryGraphTest.java b/rdf4j/src/test/java/org/apache/commons/rdf/rdf4j/MemoryGraphTest.java
index 9d9c802..f0d64c3 100644
--- a/rdf4j/src/test/java/org/apache/commons/rdf/rdf4j/MemoryGraphTest.java
+++ b/rdf4j/src/test/java/org/apache/commons/rdf/rdf4j/MemoryGraphTest.java
@@ -37,42 +37,52 @@ public class MemoryGraphTest extends AbstractGraphTest {
 
         RDF4J rdf4jFactory = new RDF4J(new MemValueFactory());
 
+        @Override
         public RDF4JBlankNode createBlankNode() {
             return rdf4jFactory.createBlankNode();
         }
 
+        @Override
         public RDF4JBlankNode createBlankNode(String name) {
             return rdf4jFactory.createBlankNode(name);
         }
 
+        @Override
         public Dataset createDataset() {
             return rdf4jFactory.createDataset();
         }
 
+        @Override
         public RDF4JIRI createIRI(String iri) throws IllegalArgumentException, UnsupportedOperationException
{
             return rdf4jFactory.createIRI(iri);
         }
 
+        @Override
         public RDF4JLiteral createLiteral(String lexicalForm) {
             return rdf4jFactory.createLiteral(lexicalForm);
         }
 
+        @Override
         public Literal createLiteral(String lexicalForm, IRI dataType) {
             return rdf4jFactory.createLiteral(lexicalForm, dataType);
         }
 
+        @Override
         public Literal createLiteral(String lexicalForm, String languageTag) {
             return rdf4jFactory.createLiteral(lexicalForm, languageTag);
         }
 
+        @Override
         public RDF4JTriple createTriple(BlankNodeOrIRI subject, IRI predicate, RDFTerm object)
{
             return rdf4jFactory.createTriple(subject, predicate, object);
         }
 
+        @Override
         public Quad createQuad(BlankNodeOrIRI graphName, BlankNodeOrIRI subject, IRI predicate,
RDFTerm object) {
             return rdf4jFactory.createQuad(graphName, subject, predicate, object);
         }
 
+        @Override
         public RDF4JGraph createGraph() {
             Sail sail = new MemoryStore();
             Repository repository = new SailRepository(sail);

http://git-wip-us.apache.org/repos/asf/incubator-commonsrdf/blob/e36c67a6/rdf4j/src/test/java/org/apache/commons/rdf/rdf4j/NativeStoreGraphTest.java
----------------------------------------------------------------------
diff --git a/rdf4j/src/test/java/org/apache/commons/rdf/rdf4j/NativeStoreGraphTest.java b/rdf4j/src/test/java/org/apache/commons/rdf/rdf4j/NativeStoreGraphTest.java
index 35a7071..9fd2dcf 100644
--- a/rdf4j/src/test/java/org/apache/commons/rdf/rdf4j/NativeStoreGraphTest.java
+++ b/rdf4j/src/test/java/org/apache/commons/rdf/rdf4j/NativeStoreGraphTest.java
@@ -70,34 +70,42 @@ public class NativeStoreGraphTest extends AbstractGraphTest {
         }
 
         // Delegate methods
+        @Override
         public RDF4JBlankNode createBlankNode() {
             return rdf4jFactory.createBlankNode();
         }
 
+        @Override
         public RDF4JBlankNode createBlankNode(String name) {
             return rdf4jFactory.createBlankNode(name);
         }
 
+        @Override
         public RDF4JIRI createIRI(String iri) throws IllegalArgumentException, UnsupportedOperationException
{
             return rdf4jFactory.createIRI(iri);
         }
 
+        @Override
         public RDF4JLiteral createLiteral(String lexicalForm) {
             return rdf4jFactory.createLiteral(lexicalForm);
         }
 
+        @Override
         public Literal createLiteral(String lexicalForm, IRI dataType) {
             return rdf4jFactory.createLiteral(lexicalForm, dataType);
         }
 
+        @Override
         public Literal createLiteral(String lexicalForm, String languageTag) {
             return rdf4jFactory.createLiteral(lexicalForm, languageTag);
         }
 
+        @Override
         public RDF4JTriple createTriple(BlankNodeOrIRI subject, IRI predicate, RDFTerm object)
{
             return rdf4jFactory.createTriple(subject, predicate, object);
         }
 
+        @Override
         public Quad createQuad(BlankNodeOrIRI graphName, BlankNodeOrIRI subject, IRI predicate,
RDFTerm object)
                 throws IllegalArgumentException {
             return rdf4jFactory.createQuad(graphName, subject, predicate, object);

http://git-wip-us.apache.org/repos/asf/incubator-commonsrdf/blob/e36c67a6/simple/src/main/java/org/apache/commons/rdf/simple/SimpleRDFTermFactory.java
----------------------------------------------------------------------
diff --git a/simple/src/main/java/org/apache/commons/rdf/simple/SimpleRDFTermFactory.java
b/simple/src/main/java/org/apache/commons/rdf/simple/SimpleRDFTermFactory.java
index 144cfe5..c526b46 100644
--- a/simple/src/main/java/org/apache/commons/rdf/simple/SimpleRDFTermFactory.java
+++ b/simple/src/main/java/org/apache/commons/rdf/simple/SimpleRDFTermFactory.java
@@ -36,34 +36,42 @@ public class SimpleRDFTermFactory implements RDFTermFactory {
 
     private SimpleRDF factory = new SimpleRDF();
 
+    @Override
     public BlankNode createBlankNode() {
         return factory.createBlankNode();
     }
 
+    @Override
     public BlankNode createBlankNode(String name) {
         return factory.createBlankNode(name);
     }
 
+    @Override
     public Graph createGraph() {
         return factory.createGraph();
     }
 
+    @Override
     public IRI createIRI(String iri) {
         return factory.createIRI(iri);
     }
 
+    @Override
     public Literal createLiteral(String literal) {
         return factory.createLiteral(literal);
     }
 
+    @Override
     public Literal createLiteral(String literal, IRI dataType) {
         return factory.createLiteral(literal, dataType);
     }
 
+    @Override
     public Literal createLiteral(String literal, String language) {
         return factory.createLiteral(literal, language);
     }
 
+    @Override
     public Triple createTriple(BlankNodeOrIRI subject, IRI predicate, RDFTerm object) {
         return factory.createTriple(subject, predicate, object);
     }


Mime
View raw message