From 4a2c1ab79906bb39660efa023eacc78b23ccef18 Mon Sep 17 00:00:00 2001 From: Gary Gregory Date: Wed, 21 Aug 2024 09:20:38 -0400 Subject: [PATCH] Fix typos in comments --- .../main/java/org/apache/commons/rdf/api/RDFTermFactory.java | 2 +- commons-rdf-examples/src/example/UserGuideTest.java | 1 - .../org/apache/commons/rdf/integrationtests/AllToAllTest.java | 4 ++-- .../org/apache/commons/rdf/jena/impl/InternalJenaFactory.java | 2 +- .../src/main/java/org/apache/commons/rdf/rdf4j/RDF4J.java | 2 +- .../org/apache/commons/rdf/rdf4j/impl/ModelGraphImpl.java | 2 +- .../main/java/org/apache/commons/rdf/simple/DatasetImpl.java | 2 +- 7 files changed, 7 insertions(+), 8 deletions(-) diff --git a/commons-rdf-api/src/main/java/org/apache/commons/rdf/api/RDFTermFactory.java b/commons-rdf-api/src/main/java/org/apache/commons/rdf/api/RDFTermFactory.java index f4c8577d..4a182314 100644 --- a/commons-rdf-api/src/main/java/org/apache/commons/rdf/api/RDFTermFactory.java +++ b/commons-rdf-api/src/main/java/org/apache/commons/rdf/api/RDFTermFactory.java @@ -18,7 +18,7 @@ package org.apache.commons.rdf.api; /** - * Factory for creating RDFTerm instances.. + * Factory for creating RDFTerm instances. *

* This interface is deprecated in favour of the richer * {@link RDF}. diff --git a/commons-rdf-examples/src/example/UserGuideTest.java b/commons-rdf-examples/src/example/UserGuideTest.java index f5dcffe7..65132ec7 100644 --- a/commons-rdf-examples/src/example/UserGuideTest.java +++ b/commons-rdf-examples/src/example/UserGuideTest.java @@ -147,7 +147,6 @@ public void testTriple() throws Exception { String s = ((IRI) subj).getIRIString(); System.out.println(s); } - // .. if (obj instanceof Literal) { IRI type = ((Literal) obj).getDatatype(); System.out.println(type); diff --git a/commons-rdf-integration-tests/src/test/java/org/apache/commons/rdf/integrationtests/AllToAllTest.java b/commons-rdf-integration-tests/src/test/java/org/apache/commons/rdf/integrationtests/AllToAllTest.java index e92fdf5f..12d0447c 100644 --- a/commons-rdf-integration-tests/src/test/java/org/apache/commons/rdf/integrationtests/AllToAllTest.java +++ b/commons-rdf-integration-tests/src/test/java/org/apache/commons/rdf/integrationtests/AllToAllTest.java @@ -74,7 +74,7 @@ public AllToAllTest(final Class from, final Class * second factory. * * @throws Exception - * Just in case.. + * Just in case. */ @Test public void testAddTermsFromOtherFactory() throws Exception { @@ -122,7 +122,7 @@ public void testAddTermsFromOtherFactory() throws Exception { * the graph. * * @throws Exception - * Just in case.. + * Just in case. */ @Test public void testAddTriplesFromOtherFactory() throws Exception { diff --git a/commons-rdf-jena/src/main/java/org/apache/commons/rdf/jena/impl/InternalJenaFactory.java b/commons-rdf-jena/src/main/java/org/apache/commons/rdf/jena/impl/InternalJenaFactory.java index 58f50158..d279b82f 100644 --- a/commons-rdf-jena/src/main/java/org/apache/commons/rdf/jena/impl/InternalJenaFactory.java +++ b/commons-rdf-jena/src/main/java/org/apache/commons/rdf/jena/impl/InternalJenaFactory.java @@ -77,7 +77,7 @@ public JenaDataset createDataset(final DatasetGraph datasetGraph, final UUID sal public JenaDataset createDataset(final UUID salt) { final DatasetGraph dg = DatasetGraphFactory.createGeneral(); - // Or which createMethod() -- a bit confusing with lots of choice.. + // Or which createMethod() -- a bit confusing with lots of choice. return new JenaDatasetImpl(dg, salt); } diff --git a/commons-rdf-rdf4j/src/main/java/org/apache/commons/rdf/rdf4j/RDF4J.java b/commons-rdf-rdf4j/src/main/java/org/apache/commons/rdf/rdf4j/RDF4J.java index 76a18ea5..692a7dfa 100644 --- a/commons-rdf-rdf4j/src/main/java/org/apache/commons/rdf/rdf4j/RDF4J.java +++ b/commons-rdf-rdf4j/src/main/java/org/apache/commons/rdf/rdf4j/RDF4J.java @@ -560,7 +560,7 @@ public Value asValue(final RDFTerm term) { // This is where it gets tricky to support round trips! final BlankNode blankNode = (BlankNode) term; // FIXME: The uniqueReference might not be a valid BlankNode - // identifier.. + // identifier. // does it have to be in RDF4J? return getValueFactory().createBNode(blankNode.uniqueReference()); } diff --git a/commons-rdf-rdf4j/src/main/java/org/apache/commons/rdf/rdf4j/impl/ModelGraphImpl.java b/commons-rdf-rdf4j/src/main/java/org/apache/commons/rdf/rdf4j/impl/ModelGraphImpl.java index 8480831c..0564b7be 100644 --- a/commons-rdf-rdf4j/src/main/java/org/apache/commons/rdf/rdf4j/impl/ModelGraphImpl.java +++ b/commons-rdf-rdf4j/src/main/java/org/apache/commons/rdf/rdf4j/impl/ModelGraphImpl.java @@ -108,7 +108,7 @@ public void close() throws Exception { @SuppressWarnings("unchecked") @Override public Iterator iterator() { - // double-cast to fight Java generics.. + // double-cast to fight Java generics. final Stream s = stream(subject, predicate, object); return (Iterator) s.iterator(); } diff --git a/commons-rdf-simple/src/main/java/org/apache/commons/rdf/simple/DatasetImpl.java b/commons-rdf-simple/src/main/java/org/apache/commons/rdf/simple/DatasetImpl.java index d0bfb75b..461acc8e 100644 --- a/commons-rdf-simple/src/main/java/org/apache/commons/rdf/simple/DatasetImpl.java +++ b/commons-rdf-simple/src/main/java/org/apache/commons/rdf/simple/DatasetImpl.java @@ -111,7 +111,7 @@ public Optional getGraph(final BlankNodeOrIRI graphName) { @Override public Stream getGraphNames() { - // Not very efficient.. + // Not very efficient. return stream().map(Quad::getGraphName).filter(Optional::isPresent).map(Optional::get).distinct(); }