commonsrdf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From st...@apache.org
Subject incubator-commonsrdf git commit: avoid uneccessary local variable in cast
Date Fri, 07 Oct 2016 16:24:56 GMT
Repository: incubator-commonsrdf
Updated Branches:
  refs/heads/master 7f866f025 -> 7fdffa55a


avoid uneccessary local variable in cast

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

Branch: refs/heads/master
Commit: 7fdffa55a8217d1f0d833515a43f615d6dd32b94
Parents: 7f866f0
Author: Stian Soiland-Reyes <stain@apache.org>
Authored: Fri Oct 7 17:19:58 2016 +0100
Committer: Stian Soiland-Reyes <stain@apache.org>
Committed: Fri Oct 7 17:19:58 2016 +0100

----------------------------------------------------------------------
 .../main/java/org/apache/commons/rdf/rdf4j/RDF4JTermFactory.java  | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-commonsrdf/blob/7fdffa55/rdf4j/src/main/java/org/apache/commons/rdf/rdf4j/RDF4JTermFactory.java
----------------------------------------------------------------------
diff --git a/rdf4j/src/main/java/org/apache/commons/rdf/rdf4j/RDF4JTermFactory.java b/rdf4j/src/main/java/org/apache/commons/rdf/rdf4j/RDF4JTermFactory.java
index 543799c..07289cf 100644
--- a/rdf4j/src/main/java/org/apache/commons/rdf/rdf4j/RDF4JTermFactory.java
+++ b/rdf4j/src/main/java/org/apache/commons/rdf/rdf4j/RDF4JTermFactory.java
@@ -416,8 +416,7 @@ public final class RDF4JTermFactory implements RDFTermFactory {
 		if (tripleLike instanceof RDF4JTripleLike) {
 			// Return original statement - this covers both RDF4JQuad and
 			// RDF4JTriple
-			RDF4JTripleLike rdf4jTriple = (RDF4JTripleLike) tripleLike;
-			return rdf4jTriple.asStatement();
+			return ((RDF4JTripleLike) tripleLike).asStatement();
 		}
 
 		org.eclipse.rdf4j.model.Resource subject = (org.eclipse.rdf4j.model.Resource) asValue(tripleLike.getSubject());


Mime
View raw message