jena-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From a...@apache.org
Subject [01/10] jena git commit: Making Model attributes private and final in many vocabulary classes.
Date Sun, 06 Sep 2015 15:52:31 GMT
Repository: jena
Updated Branches:
  refs/heads/master af1697aca -> 0cc6b6bc6


Making Model attributes private and final in many vocabulary classes.

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

Branch: refs/heads/master
Commit: d0f9daa4b9dcbf7678917cf404debdb8ba1c6485
Parents: 7370989
Author: Ramiro Pereira de Magalhães <ramiro.p.magalhaes@gmail.com>
Authored: Thu Sep 3 18:13:03 2015 -0300
Committer: Ramiro Pereira de Magalhães <ramiro.p.magalhaes@gmail.com>
Committed: Thu Sep 3 18:13:03 2015 -0300

----------------------------------------------------------------------
 jena-core/src/main/java/org/apache/jena/vocabulary/DCTerms.java    | 2 +-
 jena-core/src/main/java/org/apache/jena/vocabulary/DCTypes.java    | 2 +-
 jena-core/src/main/java/org/apache/jena/vocabulary/DC_11.java      | 2 +-
 jena-core/src/main/java/org/apache/jena/vocabulary/OWL.java        | 2 +-
 jena-core/src/main/java/org/apache/jena/vocabulary/OWLResults.java | 2 +-
 jena-core/src/main/java/org/apache/jena/vocabulary/OWLTest.java    | 2 +-
 .../main/java/org/apache/jena/vocabulary/OntDocManagerVocab.java   | 2 +-
 .../src/main/java/org/apache/jena/vocabulary/OntEventsVocab.java   | 2 +-
 jena-core/src/main/java/org/apache/jena/vocabulary/RDFTest.java    | 2 +-
 jena-core/src/main/java/org/apache/jena/vocabulary/SKOS.java       | 2 +-
 jena-core/src/main/java/org/apache/jena/vocabulary/SKOSXL.java     | 2 +-
 .../src/main/java/org/apache/jena/vocabulary/TestManifest.java     | 2 +-
 .../src/main/java/org/apache/jena/vocabulary/TestManifestX.java    | 2 +-
 jena-core/src/main/java/org/apache/jena/vocabulary/VCARD.java      | 2 +-
 14 files changed, 14 insertions(+), 14 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/jena/blob/d0f9daa4/jena-core/src/main/java/org/apache/jena/vocabulary/DCTerms.java
----------------------------------------------------------------------
diff --git a/jena-core/src/main/java/org/apache/jena/vocabulary/DCTerms.java b/jena-core/src/main/java/org/apache/jena/vocabulary/DCTerms.java
index 9b4f8a7..9aaed7e 100644
--- a/jena-core/src/main/java/org/apache/jena/vocabulary/DCTerms.java
+++ b/jena-core/src/main/java/org/apache/jena/vocabulary/DCTerms.java
@@ -24,7 +24,7 @@ import org.apache.jena.rdf.model.* ;
  */
 public class DCTerms {
     /** <p>The RDF model that holds the vocabulary terms</p> */
-    private static Model m_model = ModelFactory.createDefaultModel();
+    private static final Model m_model = ModelFactory.createDefaultModel();
     
     /** <p>The namespace of the vocabulary as a string</p> */
     public static final String NS = "http://purl.org/dc/terms/";

http://git-wip-us.apache.org/repos/asf/jena/blob/d0f9daa4/jena-core/src/main/java/org/apache/jena/vocabulary/DCTypes.java
----------------------------------------------------------------------
diff --git a/jena-core/src/main/java/org/apache/jena/vocabulary/DCTypes.java b/jena-core/src/main/java/org/apache/jena/vocabulary/DCTypes.java
index 7c7f04a..43c1e7c 100644
--- a/jena-core/src/main/java/org/apache/jena/vocabulary/DCTypes.java
+++ b/jena-core/src/main/java/org/apache/jena/vocabulary/DCTypes.java
@@ -24,7 +24,7 @@ import org.apache.jena.rdf.model.* ;
  */
 public class DCTypes {
     /** <p>The RDF model that holds the vocabulary terms</p> */
-    private static Model m_model = ModelFactory.createDefaultModel();
+    private static final Model m_model = ModelFactory.createDefaultModel();
     
     /** <p>The namespace of the vocabulary as a string</p> */
     public static final String NS = "http://purl.org/dc/dcmitype/";

http://git-wip-us.apache.org/repos/asf/jena/blob/d0f9daa4/jena-core/src/main/java/org/apache/jena/vocabulary/DC_11.java
----------------------------------------------------------------------
diff --git a/jena-core/src/main/java/org/apache/jena/vocabulary/DC_11.java b/jena-core/src/main/java/org/apache/jena/vocabulary/DC_11.java
index 70f7c41..3978499 100644
--- a/jena-core/src/main/java/org/apache/jena/vocabulary/DC_11.java
+++ b/jena-core/src/main/java/org/apache/jena/vocabulary/DC_11.java
@@ -26,7 +26,7 @@ import org.apache.jena.rdf.model.* ;
  */
 public class DC_11 {
     /** <p>The RDF model that holds the vocabulary terms</p> */
-    private static Model m_model = ModelFactory.createDefaultModel();
+    private static final Model m_model = ModelFactory.createDefaultModel();
     
     /** <p>The namespace of the vocabalary as a string ({@value})</p> */
     public static final String NS = "http://purl.org/dc/elements/1.1/";

http://git-wip-us.apache.org/repos/asf/jena/blob/d0f9daa4/jena-core/src/main/java/org/apache/jena/vocabulary/OWL.java
----------------------------------------------------------------------
diff --git a/jena-core/src/main/java/org/apache/jena/vocabulary/OWL.java b/jena-core/src/main/java/org/apache/jena/vocabulary/OWL.java
index 39e861c..4e2df46 100644
--- a/jena-core/src/main/java/org/apache/jena/vocabulary/OWL.java
+++ b/jena-core/src/main/java/org/apache/jena/vocabulary/OWL.java
@@ -33,7 +33,7 @@ import org.apache.jena.rdf.model.* ;
  */
 public class OWL {
     /** <p>The RDF model that holds the vocabulary terms</p> */
-    private static Model m_model = ModelFactory.createDefaultModel();
+    private static final Model m_model = ModelFactory.createDefaultModel();
     
     /** <p>The namespace of the vocabulary as a string ({@value})</p> */
     public static final String NS = "http://www.w3.org/2002/07/owl#";

http://git-wip-us.apache.org/repos/asf/jena/blob/d0f9daa4/jena-core/src/main/java/org/apache/jena/vocabulary/OWLResults.java
----------------------------------------------------------------------
diff --git a/jena-core/src/main/java/org/apache/jena/vocabulary/OWLResults.java b/jena-core/src/main/java/org/apache/jena/vocabulary/OWLResults.java
index 75959e3..44b3ba3 100644
--- a/jena-core/src/main/java/org/apache/jena/vocabulary/OWLResults.java
+++ b/jena-core/src/main/java/org/apache/jena/vocabulary/OWLResults.java
@@ -27,7 +27,7 @@ import org.apache.jena.rdf.model.* ;
  */
 public class OWLResults {
     /** <p>The RDF model that holds the vocabulary terms</p> */
-    private static Model m_model = ModelFactory.createDefaultModel();
+    private static final Model m_model = ModelFactory.createDefaultModel();
     
     /** <p>The namespace of the vocabalary as a string ({@value})</p> */
     public static final String NS = "http://www.w3.org/2002/03owlt/resultsOntology#";

http://git-wip-us.apache.org/repos/asf/jena/blob/d0f9daa4/jena-core/src/main/java/org/apache/jena/vocabulary/OWLTest.java
----------------------------------------------------------------------
diff --git a/jena-core/src/main/java/org/apache/jena/vocabulary/OWLTest.java b/jena-core/src/main/java/org/apache/jena/vocabulary/OWLTest.java
index 7aef9b3..a816ce7 100644
--- a/jena-core/src/main/java/org/apache/jena/vocabulary/OWLTest.java
+++ b/jena-core/src/main/java/org/apache/jena/vocabulary/OWLTest.java
@@ -28,7 +28,7 @@ import org.apache.jena.rdf.model.* ;
 public class OWLTest  {
 
 	/** <p>The RDF model that holds the vocabulary terms</p> */
-    private static Model m_model = ModelFactory.createDefaultModel();
+    private static final Model m_model = ModelFactory.createDefaultModel();
     
     /** <p>The namespace of the vocabalary as a string ({@value})</p> */
     public static final String NS = "http://www.w3.org/2002/03owlt/testOntology#";

http://git-wip-us.apache.org/repos/asf/jena/blob/d0f9daa4/jena-core/src/main/java/org/apache/jena/vocabulary/OntDocManagerVocab.java
----------------------------------------------------------------------
diff --git a/jena-core/src/main/java/org/apache/jena/vocabulary/OntDocManagerVocab.java b/jena-core/src/main/java/org/apache/jena/vocabulary/OntDocManagerVocab.java
index dfaa5a9..8f752e3 100644
--- a/jena-core/src/main/java/org/apache/jena/vocabulary/OntDocManagerVocab.java
+++ b/jena-core/src/main/java/org/apache/jena/vocabulary/OntDocManagerVocab.java
@@ -33,7 +33,7 @@ import org.apache.jena.rdf.model.* ;
  */
 public class OntDocManagerVocab {
     /** <p>The RDF model that holds the vocabulary terms</p> */
-    private static Model m_model = ModelFactory.createDefaultModel();
+    private static final Model m_model = ModelFactory.createDefaultModel();
     
     /** <p>The namespace of the vocabulary as a string ({@value})</p> */
     public static final String NS = "http://jena.hpl.hp.com/schemas/2003/03/ont-manager#";

http://git-wip-us.apache.org/repos/asf/jena/blob/d0f9daa4/jena-core/src/main/java/org/apache/jena/vocabulary/OntEventsVocab.java
----------------------------------------------------------------------
diff --git a/jena-core/src/main/java/org/apache/jena/vocabulary/OntEventsVocab.java b/jena-core/src/main/java/org/apache/jena/vocabulary/OntEventsVocab.java
index 12bf1e9..34d92ec 100644
--- a/jena-core/src/main/java/org/apache/jena/vocabulary/OntEventsVocab.java
+++ b/jena-core/src/main/java/org/apache/jena/vocabulary/OntEventsVocab.java
@@ -33,7 +33,7 @@ import org.apache.jena.rdf.model.* ;
  */
 public class OntEventsVocab {
     /** <p>The ontology model that holds the vocabulary terms</p> */
-    private static OntModel m_model = ModelFactory.createOntologyModel( OntModelSpec.OWL_MEM,
null );
+    private static final OntModel m_model = ModelFactory.createOntologyModel( OntModelSpec.OWL_MEM,
null );
     
     /** <p>The namespace of the vocabulary as a string ({@value})</p> */
     public static final String NS = "http://jena.hpl.hp.com/schemas/2003/03/ont-event#";

http://git-wip-us.apache.org/repos/asf/jena/blob/d0f9daa4/jena-core/src/main/java/org/apache/jena/vocabulary/RDFTest.java
----------------------------------------------------------------------
diff --git a/jena-core/src/main/java/org/apache/jena/vocabulary/RDFTest.java b/jena-core/src/main/java/org/apache/jena/vocabulary/RDFTest.java
index 4df4370..94c542e 100644
--- a/jena-core/src/main/java/org/apache/jena/vocabulary/RDFTest.java
+++ b/jena-core/src/main/java/org/apache/jena/vocabulary/RDFTest.java
@@ -28,7 +28,7 @@ import org.apache.jena.rdf.model.* ;
 public class RDFTest {
     
     /** <p>The RDF model that holds the vocabulary terms</p> */
-    private static Model m_model = ModelFactory.createDefaultModel();
+    private static final Model m_model = ModelFactory.createDefaultModel();
     
     /** <p>The namespace of the vocabalary as a string ({@value})</p> */
     public static final String NS = "http://www.w3.org/2000/10/rdf-tests/rdfcore/testSchema#";

http://git-wip-us.apache.org/repos/asf/jena/blob/d0f9daa4/jena-core/src/main/java/org/apache/jena/vocabulary/SKOS.java
----------------------------------------------------------------------
diff --git a/jena-core/src/main/java/org/apache/jena/vocabulary/SKOS.java b/jena-core/src/main/java/org/apache/jena/vocabulary/SKOS.java
index 4f3a40f..426a3a4 100644
--- a/jena-core/src/main/java/org/apache/jena/vocabulary/SKOS.java
+++ b/jena-core/src/main/java/org/apache/jena/vocabulary/SKOS.java
@@ -32,7 +32,7 @@ public class SKOS {
 	/**
 	 * The RDF model that holds the SKOS entities
 	 */
-	public static Model m = ModelFactory.createDefaultModel();
+	private static final Model m = ModelFactory.createDefaultModel();
 	/**
 	 * The namespace of the SKOS vocabulary as a string
 	 */

http://git-wip-us.apache.org/repos/asf/jena/blob/d0f9daa4/jena-core/src/main/java/org/apache/jena/vocabulary/SKOSXL.java
----------------------------------------------------------------------
diff --git a/jena-core/src/main/java/org/apache/jena/vocabulary/SKOSXL.java b/jena-core/src/main/java/org/apache/jena/vocabulary/SKOSXL.java
index c09047b..05f4b0f 100644
--- a/jena-core/src/main/java/org/apache/jena/vocabulary/SKOSXL.java
+++ b/jena-core/src/main/java/org/apache/jena/vocabulary/SKOSXL.java
@@ -31,7 +31,7 @@ public class SKOSXL {
 	/**
 	 * The RDF model that holds the SKOS-XL entities
 	 */
-	public static Model m = ModelFactory.createDefaultModel();
+	private static final Model m = ModelFactory.createDefaultModel();
 	/**
 	 * The namespace of the SKOS-XL vocabulary as a string
 	 */

http://git-wip-us.apache.org/repos/asf/jena/blob/d0f9daa4/jena-core/src/main/java/org/apache/jena/vocabulary/TestManifest.java
----------------------------------------------------------------------
diff --git a/jena-core/src/main/java/org/apache/jena/vocabulary/TestManifest.java b/jena-core/src/main/java/org/apache/jena/vocabulary/TestManifest.java
index d918a2f..3527b4e 100644
--- a/jena-core/src/main/java/org/apache/jena/vocabulary/TestManifest.java
+++ b/jena-core/src/main/java/org/apache/jena/vocabulary/TestManifest.java
@@ -27,7 +27,7 @@ import org.apache.jena.rdf.model.* ;
  */
 public class TestManifest {
     /** <p>The RDF model that holds the vocabulary terms</p> */
-    private static Model m_model = ModelFactory.createDefaultModel();
+    private static final Model m_model = ModelFactory.createDefaultModel();
     
     /** <p>The namespace of the vocabulary as a string</p> */
     public static final String NS = "http://www.w3.org/2001/sw/DataAccess/tests/test-manifest#";

http://git-wip-us.apache.org/repos/asf/jena/blob/d0f9daa4/jena-core/src/main/java/org/apache/jena/vocabulary/TestManifestX.java
----------------------------------------------------------------------
diff --git a/jena-core/src/main/java/org/apache/jena/vocabulary/TestManifestX.java b/jena-core/src/main/java/org/apache/jena/vocabulary/TestManifestX.java
index b699cdc..5547ec5 100644
--- a/jena-core/src/main/java/org/apache/jena/vocabulary/TestManifestX.java
+++ b/jena-core/src/main/java/org/apache/jena/vocabulary/TestManifestX.java
@@ -27,7 +27,7 @@ import org.apache.jena.rdf.model.* ;
  */
 public class TestManifestX {
     /** <p>The RDF model that holds the vocabulary terms</p> */
-    private static Model m_model = ModelFactory.createDefaultModel();
+    private static final Model m_model = ModelFactory.createDefaultModel();
     
     /** <p>The namespace of the vocabulary as a string</p> */
     public static final String NS = "http://jena.hpl.hp.com/2005/05/test-manifest-extra#";

http://git-wip-us.apache.org/repos/asf/jena/blob/d0f9daa4/jena-core/src/main/java/org/apache/jena/vocabulary/VCARD.java
----------------------------------------------------------------------
diff --git a/jena-core/src/main/java/org/apache/jena/vocabulary/VCARD.java b/jena-core/src/main/java/org/apache/jena/vocabulary/VCARD.java
index 506e1f0..4f2286c 100644
--- a/jena-core/src/main/java/org/apache/jena/vocabulary/VCARD.java
+++ b/jena-core/src/main/java/org/apache/jena/vocabulary/VCARD.java
@@ -41,7 +41,7 @@ public class VCARD {
           return uri;
     }
 
-    private static Model m = ModelFactory.createDefaultModel();
+    private static final Model m = ModelFactory.createDefaultModel();
     
     public static final Resource ORGPROPERTIES = m.createResource(uri + "ORGPROPERTIES" );
     public static final Resource ADRTYPES = m.createResource(uri + "ADRTYPES" );


Mime
View raw message