You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commonsrdf.apache.org by st...@apache.org on 2016/04/16 14:25:35 UTC

[03/10] incubator-commonsrdf git commit: copyTriples() is no longer protected static

copyTriples() is no longer protected static

..even though it may be useful elsewhere,
then it should be moved outside to some
non-test Utils class


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

Branch: refs/heads/master
Commit: 27d135be0e41a5011a78d3a2e11504a5f7327900
Parents: d4a9c95
Author: Stian Soiland-Reyes <st...@apache.org>
Authored: Fri Apr 10 10:48:56 2015 +0100
Committer: Stian Soiland-Reyes <st...@apache.org>
Committed: Sat Mar 12 18:28:17 2016 +0000

----------------------------------------------------------------------
 .../test/java/org/apache/commons/rdf/api/AbstractGraphTest.java | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-commonsrdf/blob/27d135be/api/src/test/java/org/apache/commons/rdf/api/AbstractGraphTest.java
----------------------------------------------------------------------
diff --git a/api/src/test/java/org/apache/commons/rdf/api/AbstractGraphTest.java b/api/src/test/java/org/apache/commons/rdf/api/AbstractGraphTest.java
index a301654..de49225 100644
--- a/api/src/test/java/org/apache/commons/rdf/api/AbstractGraphTest.java
+++ b/api/src/test/java/org/apache/commons/rdf/api/AbstractGraphTest.java
@@ -23,7 +23,6 @@ import static org.junit.Assert.assertNotNull;
 import static org.junit.Assert.assertTrue;
 
 import java.util.ArrayList;
-import java.util.HashMap;
 import java.util.HashSet;
 import java.util.Iterator;
 import java.util.List;
@@ -297,7 +296,7 @@ public abstract class AbstractGraphTest {
 
             final Map<String, BlankNodeOrIRI> whoIsWho = new ConcurrentHashMap<>();
             // ConcurrentHashMap as we will try parallel forEach below,
-            // which should not give inconsistent results (it does with a 
+            // which should not give inconsistent results (it does with a
             // HashMap!)
             g3.getTriples(null, name, null).parallel().forEach( t ->
                 whoIsWho.put( t.getObject().ntriplesString(), t.getSubject()));
@@ -356,7 +355,7 @@ public abstract class AbstractGraphTest {
      * @param source Source Graph to copy triples from
      * @param target Target Graph where triples will be added
      */
-    protected static void copyTriples(Graph source, Graph target) {
+    private void copyTriples(Graph source, Graph target) {
 
         // unordered() as we don't need to preserve triple order
         // sequential() as we don't (currently) require target Graph to be thread-safe