commonsrdf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From st...@apache.org
Subject [30/50] incubator-commonsrdf git commit: final to show variables are assigned once
Date Fri, 07 Oct 2016 14:23:24 GMT
final to show variables are assigned once

See
https://github.com/apache/incubator-commonsrdf/pull/23#discussion_r81152333

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

Branch: refs/heads/rdf4j
Commit: 379ac0ad524d854dc19ec45d3e3e3d5549428a32
Parents: fe8104a
Author: Stian Soiland-Reyes <stain@apache.org>
Authored: Thu Sep 29 15:57:40 2016 +0100
Committer: Stian Soiland-Reyes <stain@apache.org>
Committed: Thu Sep 29 15:57:40 2016 +0100

----------------------------------------------------------------------
 .../java/org/apache/commons/rdf/jena/JenaRDFTermFactory.java     | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-commonsrdf/blob/379ac0ad/jena/src/main/java/org/apache/commons/rdf/jena/JenaRDFTermFactory.java
----------------------------------------------------------------------
diff --git a/jena/src/main/java/org/apache/commons/rdf/jena/JenaRDFTermFactory.java b/jena/src/main/java/org/apache/commons/rdf/jena/JenaRDFTermFactory.java
index 9a58ce7..6c1d9f7 100644
--- a/jena/src/main/java/org/apache/commons/rdf/jena/JenaRDFTermFactory.java
+++ b/jena/src/main/java/org/apache/commons/rdf/jena/JenaRDFTermFactory.java
@@ -460,8 +460,8 @@ public final class JenaRDFTermFactory implements RDFTermFactory {
 			// No need to convert, just wrap
 			return ((JenaRDFTermFactory) factory).fromJena(triple);
 		}
-		BlankNodeOrIRI subject;
-		IRI predicate;
+		final BlankNodeOrIRI subject;
+		final IRI predicate;
 		try {
 			subject = (BlankNodeOrIRI) fromJena(factory, triple.getSubject());
 			predicate = (IRI) fromJena(factory, triple.getPredicate());


Mime
View raw message