You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commonsrdf.apache.org by st...@apache.org on 2016/10/07 16:24:56 UTC

incubator-commonsrdf git commit: avoid uneccessary local variable in cast

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 <st...@apache.org>
Authored: Fri Oct 7 17:19:58 2016 +0100
Committer: Stian Soiland-Reyes <st...@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());