commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From st...@apache.org
Subject [2/5] commons-rdf git commit: remove redundant type casts
Date Fri, 27 Jan 2017 16:06:18 GMT
remove redundant type casts


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

Branch: refs/heads/master
Commit: ed787cf7fef42c197f77a66d78ced2a6e6ef0398
Parents: 94fb7c6
Author: Guohui Xiao <gh.xiao@gmail.com>
Authored: Wed Jan 25 19:13:44 2017 +0100
Committer: Guohui Xiao <gh.xiao@gmail.com>
Committed: Wed Jan 25 19:13:44 2017 +0100

----------------------------------------------------------------------
 .../main/java/org/apache/commons/rdf/rdf4j/RDF4J.java   | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/commons-rdf/blob/ed787cf7/rdf4j/src/main/java/org/apache/commons/rdf/rdf4j/RDF4J.java
----------------------------------------------------------------------
diff --git a/rdf4j/src/main/java/org/apache/commons/rdf/rdf4j/RDF4J.java b/rdf4j/src/main/java/org/apache/commons/rdf/rdf4j/RDF4J.java
index b6d2544..31002cb 100644
--- a/rdf4j/src/main/java/org/apache/commons/rdf/rdf4j/RDF4J.java
+++ b/rdf4j/src/main/java/org/apache/commons/rdf/rdf4j/RDF4J.java
@@ -552,13 +552,13 @@ public final class RDF4J implements RDF {
     @Override
     public RDF4JBlankNode createBlankNode() {
         final BNode bnode = getValueFactory().createBNode();
-        return (RDF4JBlankNode) asRDFTerm(bnode);
+        return asRDFTerm(bnode);
     }
 
     @Override
     public RDF4JBlankNode createBlankNode(final String name) {
         final BNode bnode = getValueFactory().createBNode(name);
-        return (RDF4JBlankNode) asRDFTerm(bnode);
+        return asRDFTerm(bnode);
     }
 
     /**
@@ -584,13 +584,13 @@ public final class RDF4J implements RDF {
 
     @Override
     public RDF4JIRI createIRI(final String iri) throws IllegalArgumentException {
-        return (RDF4JIRI) asRDFTerm(getValueFactory().createIRI(iri));
+        return asRDFTerm(getValueFactory().createIRI(iri));
     }
 
     @Override
     public RDF4JLiteral createLiteral(final String lexicalForm) throws IllegalArgumentException
{
         final org.eclipse.rdf4j.model.Literal lit = getValueFactory().createLiteral(lexicalForm);
-        return (RDF4JLiteral) asRDFTerm(lit);
+        return asRDFTerm(lit);
     }
 
     @Override
@@ -598,14 +598,14 @@ public final class RDF4J implements RDF {
             throws IllegalArgumentException {
         final org.eclipse.rdf4j.model.IRI iri = getValueFactory().createIRI(dataType.getIRIString());
         final org.eclipse.rdf4j.model.Literal lit = getValueFactory().createLiteral(lexicalForm,
iri);
-        return (org.apache.commons.rdf.api.Literal) asRDFTerm(lit);
+        return asRDFTerm(lit);
     }
 
     @Override
     public org.apache.commons.rdf.api.Literal createLiteral(final String lexicalForm, final
String languageTag)
             throws IllegalArgumentException {
         final org.eclipse.rdf4j.model.Literal lit = getValueFactory().createLiteral(lexicalForm,
languageTag);
-        return (org.apache.commons.rdf.api.Literal) asRDFTerm(lit);
+        return asRDFTerm(lit);
     }
 
     @Override


Mime
View raw message