commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ggreg...@apache.org
Subject commons-rdf git commit: Add final modifier to private fields.
Date Mon, 30 Oct 2017 16:22:36 GMT
Repository: commons-rdf
Updated Branches:
  refs/heads/master d5c72069f -> bfc1e07dc


Add final modifier to private fields.

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

Branch: refs/heads/master
Commit: bfc1e07dcb707964f0d80542b2a6a3b9e74fe6ae
Parents: d5c7206
Author: Gary Gregory <ggregory@apache.org>
Authored: Mon Oct 30 10:22:33 2017 -0600
Committer: Gary Gregory <ggregory@apache.org>
Committed: Mon Oct 30 10:22:33 2017 -0600

----------------------------------------------------------------------
 .../src/main/java/org/apache/commons/rdf/api/W3CRDFSyntax.java | 4 ++--
 .../org/apache/commons/rdf/jena/impl/AbstractQuadLike.java     | 6 +++---
 .../org/apache/commons/rdf/jena/GeneralizedRDFQuadTest.java    | 2 +-
 .../org/apache/commons/rdf/jena/GeneralizedRDFTripleTest.java  | 2 +-
 4 files changed, 7 insertions(+), 7 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/commons-rdf/blob/bfc1e07d/commons-rdf-api/src/main/java/org/apache/commons/rdf/api/W3CRDFSyntax.java
----------------------------------------------------------------------
diff --git a/commons-rdf-api/src/main/java/org/apache/commons/rdf/api/W3CRDFSyntax.java b/commons-rdf-api/src/main/java/org/apache/commons/rdf/api/W3CRDFSyntax.java
index 740ef5f..2c31612 100644
--- a/commons-rdf-api/src/main/java/org/apache/commons/rdf/api/W3CRDFSyntax.java
+++ b/commons-rdf-api/src/main/java/org/apache/commons/rdf/api/W3CRDFSyntax.java
@@ -99,9 +99,9 @@ class W3CRDFSyntax implements RDFSyntax {
         RDFXML = new W3CRDFSyntax("RDF_XML", "RDF 1.1 XML Syntax", "application/rdf+xml",
".rdf", false);
         TRIG = new W3CRDFSyntax("TriG", "RDF 1.1 TriG", "application/trig", ".trig", true);
         RDFA = new W3CRDFSyntax("RDFa", "HTML+RDFa 1.1", "text/html", ".html", false) {
-            private Set<String> types = Collections.unmodifiableSet(new LinkedHashSet<>(
+            private final Set<String> types = Collections.unmodifiableSet(new LinkedHashSet<>(
                     Arrays.asList("text/html", "application/xhtml+xml")));
-            private Set<String> extensions = Collections.unmodifiableSet(new LinkedHashSet<>(
+            private final Set<String> extensions = Collections.unmodifiableSet(new
LinkedHashSet<>(
                             Arrays.asList(".html", ".xhtml")));
             @Override
             public Set<String> mediaTypes() {

http://git-wip-us.apache.org/repos/asf/commons-rdf/blob/bfc1e07d/commons-rdf-jena/src/main/java/org/apache/commons/rdf/jena/impl/AbstractQuadLike.java
----------------------------------------------------------------------
diff --git a/commons-rdf-jena/src/main/java/org/apache/commons/rdf/jena/impl/AbstractQuadLike.java
b/commons-rdf-jena/src/main/java/org/apache/commons/rdf/jena/impl/AbstractQuadLike.java
index 53f3864..698f444 100644
--- a/commons-rdf-jena/src/main/java/org/apache/commons/rdf/jena/impl/AbstractQuadLike.java
+++ b/commons-rdf-jena/src/main/java/org/apache/commons/rdf/jena/impl/AbstractQuadLike.java
@@ -64,9 +64,9 @@ abstract class AbstractQuadLike<S extends RDFTerm, P extends RDFTerm,
O extends
      */
     private static class DefaultGraphChecker {
         // Fixed UUID for comparison of defaultGraphNodeGenerated
-        private UUID salt = UUID.fromString("aaa6bf96-ea58-4a55-9485-3733403a1f24");
-        private RDFTerm defaultGraph = internalJenaFactory.createRDFTerm(Quad.defaultGraphIRI,
salt);
-        private RDFTerm defaultGraphNodeGenerated = internalJenaFactory.createRDFTerm(Quad.defaultGraphNodeGenerated,
salt);
+        private final UUID salt = UUID.fromString("aaa6bf96-ea58-4a55-9485-3733403a1f24");
+        private final RDFTerm defaultGraph = internalJenaFactory.createRDFTerm(Quad.defaultGraphIRI,
salt);
+        private final RDFTerm defaultGraphNodeGenerated = internalJenaFactory.createRDFTerm(Quad.defaultGraphNodeGenerated,
salt);
 
         /**
          * Check if RDFTerm is an IRI that matches the two Jena default graph

http://git-wip-us.apache.org/repos/asf/commons-rdf/blob/bfc1e07d/commons-rdf-jena/src/test/java/org/apache/commons/rdf/jena/GeneralizedRDFQuadTest.java
----------------------------------------------------------------------
diff --git a/commons-rdf-jena/src/test/java/org/apache/commons/rdf/jena/GeneralizedRDFQuadTest.java
b/commons-rdf-jena/src/test/java/org/apache/commons/rdf/jena/GeneralizedRDFQuadTest.java
index b9bdf65..924768c 100644
--- a/commons-rdf-jena/src/test/java/org/apache/commons/rdf/jena/GeneralizedRDFQuadTest.java
+++ b/commons-rdf-jena/src/test/java/org/apache/commons/rdf/jena/GeneralizedRDFQuadTest.java
@@ -28,7 +28,7 @@ import org.junit.Test;
 
 public class GeneralizedRDFQuadTest {
 
-    private JenaRDF jena = new JenaRDF();
+    private final JenaRDF jena = new JenaRDF();
 
     @Test
     public void bnodeProperty() throws Exception {

http://git-wip-us.apache.org/repos/asf/commons-rdf/blob/bfc1e07d/commons-rdf-jena/src/test/java/org/apache/commons/rdf/jena/GeneralizedRDFTripleTest.java
----------------------------------------------------------------------
diff --git a/commons-rdf-jena/src/test/java/org/apache/commons/rdf/jena/GeneralizedRDFTripleTest.java
b/commons-rdf-jena/src/test/java/org/apache/commons/rdf/jena/GeneralizedRDFTripleTest.java
index 95a4ce2..f7bfbf5 100644
--- a/commons-rdf-jena/src/test/java/org/apache/commons/rdf/jena/GeneralizedRDFTripleTest.java
+++ b/commons-rdf-jena/src/test/java/org/apache/commons/rdf/jena/GeneralizedRDFTripleTest.java
@@ -28,7 +28,7 @@ import org.junit.Test;
 
 public class GeneralizedRDFTripleTest {
 
-    private JenaRDF jena = new JenaRDF();
+    private final JenaRDF jena = new JenaRDF();
 
     @Test
     public void bnodeProperty() throws Exception {


Mime
View raw message