jena-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From a...@apache.org
Subject [09/10] jena git commit: Rename private ReaderRIOTFactoryImpl->ReaderRIOTLangFactory
Date Mon, 15 Jan 2018 11:48:14 GMT
Rename private ReaderRIOTFactoryImpl->ReaderRIOTLangFactory


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

Branch: refs/heads/master
Commit: 6283bddcb5973a3826a1135f69b46c14a4fcc5d2
Parents: ecccd49
Author: Andy Seaborne <andy@apache.org>
Authored: Mon Jan 15 11:30:54 2018 +0000
Committer: Andy Seaborne <andy@apache.org>
Committed: Mon Jan 15 11:30:54 2018 +0000

----------------------------------------------------------------------
 .../java/org/apache/jena/riot/RDFParserRegistry.java  | 14 +++++---------
 1 file changed, 5 insertions(+), 9 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/jena/blob/6283bddc/jena-arq/src/main/java/org/apache/jena/riot/RDFParserRegistry.java
----------------------------------------------------------------------
diff --git a/jena-arq/src/main/java/org/apache/jena/riot/RDFParserRegistry.java b/jena-arq/src/main/java/org/apache/jena/riot/RDFParserRegistry.java
index 9edc963..612d506 100644
--- a/jena-arq/src/main/java/org/apache/jena/riot/RDFParserRegistry.java
+++ b/jena-arq/src/main/java/org/apache/jena/riot/RDFParserRegistry.java
@@ -59,7 +59,7 @@ public class RDFParserRegistry
     private static Map<String, Lang> mapJenaNameToLang                 = new HashMap<>()
;
 
     /** map language to a parser factory */ 
-    private static Map<Lang, ReaderRIOTFactory> langToParserFactory  = new HashMap<>()
;
+    private static Map<Lang, ReaderRIOTFactory> langToParserFactory    = new HashMap<>()
;
     
     /** Known triples languages */
     private static Set<Lang> langTriples  = new HashSet<>() ;
@@ -67,9 +67,9 @@ public class RDFParserRegistry
     /** Known quads languages */
     private static Set<Lang> langQuads    = new HashSet<>() ;
 
-    /** General parser factory for parsers implementned by "Lang" */
-    private static ReaderRIOTFactory parserFactory          = new ReaderRIOTFactoryImpl()
;
-    
+    /** General parser factory for parsers implemented by "Lang" */
+    private static ReaderRIOTFactory parserFactory          = new ReaderRIOTLangFactory()
;
+    // Others
     private static ReaderRIOTFactory parserFactoryRDFXML    = new ReaderRIOTRDFXML.Factory();

     private static ReaderRIOTFactory parserFactoryJsonLD    = new ReaderRIOTFactoryJSONLD()
;
     private static ReaderRIOTFactory parserFactoryThrift    = new ReaderRIOTFactoryThrift()
;
@@ -162,7 +162,7 @@ public class RDFParserRegistry
 
     // Parser factories
     
-    private static class ReaderRIOTFactoryImpl implements ReaderRIOTFactory
+    private static class ReaderRIOTLangFactory implements ReaderRIOTFactory
     {
         @Override
         public ReaderRIOT create(Lang lang, ParserProfile parserProfile) {
@@ -175,10 +175,6 @@ public class RDFParserRegistry
         private final Lang lang ;
         private ParserProfile parserProfile = null ;
 
-        ReaderRIOTLang(Lang lang) {
-            this.lang = lang ;
-        }
-
         ReaderRIOTLang(Lang lang, ParserProfile parserProfile) {
             this.lang = lang ;
             this.parserProfile = parserProfile;


Mime
View raw message