jena-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aj...@apache.org
Subject [4/4] jena git commit: Minor cleanup in JSON classes
Date Sat, 08 Oct 2016 14:08:03 GMT
Minor cleanup in JSON classes


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

Branch: refs/heads/master
Commit: b1064a9fcba11a6895f4df66a772cbf8366777d3
Parents: 7d8b400
Author: ajs6f <ajs6f@virginia.edu>
Authored: Fri Sep 23 18:29:37 2016 -0400
Committer: ajs6f <ajs6f@virginia.edu>
Committed: Sat Oct 8 10:03:22 2016 -0400

----------------------------------------------------------------------
 .../main/java/org/apache/jena/riot/writer/JsonLDWriter.java    | 6 +++---
 .../java/org/apache/jena/riot/system/TestJsonLDReadWrite.java  | 4 ++--
 2 files changed, 5 insertions(+), 5 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/jena/blob/b1064a9f/jena-arq/src/main/java/org/apache/jena/riot/writer/JsonLDWriter.java
----------------------------------------------------------------------
diff --git a/jena-arq/src/main/java/org/apache/jena/riot/writer/JsonLDWriter.java b/jena-arq/src/main/java/org/apache/jena/riot/writer/JsonLDWriter.java
index 54ff5fb..b320442 100644
--- a/jena-arq/src/main/java/org/apache/jena/riot/writer/JsonLDWriter.java
+++ b/jena-arq/src/main/java/org/apache/jena/riot/writer/JsonLDWriter.java
@@ -18,6 +18,7 @@
 
 package org.apache.jena.riot.writer ;
 
+import static org.apache.jena.graph.Triple.ANY;
 import static org.apache.jena.rdf.model.impl.Util.isLangString;
 import static org.apache.jena.rdf.model.impl.Util.isSimpleString;
 
@@ -31,7 +32,6 @@ import java.util.Map.Entry;
 import java.util.function.Consumer;
 
 import org.apache.jena.atlas.io.IO ;
-import org.apache.jena.atlas.iterator.Iter ;
 import org.apache.jena.atlas.lib.Chars ;
 import org.apache.jena.atlas.lib.Pair;
 import org.apache.jena.graph.Graph ;
@@ -338,7 +338,7 @@ public class JsonLDWriter extends WriterDatasetRIOTBase
                 }
             }
         } ;
-        Iter.iter(g.find(null, null, null)).apply(x) ;
+        g.find(ANY).forEachRemaining(x);
     }
     
     /**
@@ -383,7 +383,7 @@ public class JsonLDWriter extends WriterDatasetRIOTBase
                         }        
                     }
                 } ;
-                Iter.iter(g.find(null, null, null)).apply(x) ;
+                g.find(ANY).forEachRemaining(x);
             }
         }
     }

http://git-wip-us.apache.org/repos/asf/jena/blob/b1064a9f/jena-arq/src/test/java/org/apache/jena/riot/system/TestJsonLDReadWrite.java
----------------------------------------------------------------------
diff --git a/jena-arq/src/test/java/org/apache/jena/riot/system/TestJsonLDReadWrite.java b/jena-arq/src/test/java/org/apache/jena/riot/system/TestJsonLDReadWrite.java
index 621db79..3d98a1a 100644
--- a/jena-arq/src/test/java/org/apache/jena/riot/system/TestJsonLDReadWrite.java
+++ b/jena-arq/src/test/java/org/apache/jena/riot/system/TestJsonLDReadWrite.java
@@ -64,8 +64,8 @@ public class TestJsonLDReadWrite extends BaseTest
     {
         inFile = DIR+inFile ;
         outFile = DIR+outFile ;
-        Dataset ds1 = RDFDataMgr.loadDataset(inFile) ;
-        Dataset ds2 = RDFDataMgr.loadDataset(outFile) ;
+        RDFDataMgr.loadDataset(inFile) ;
+        RDFDataMgr.loadDataset(outFile) ;
     }
 
 


Mime
View raw message