commonsrdf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ggreg...@apache.org
Subject incubator-commonsrdf git commit: Use Java 7's diamond notation.
Date Fri, 11 Nov 2016 22:39:31 GMT
Repository: incubator-commonsrdf
Updated Branches:
  refs/heads/master 1fe1b5af9 -> 3fad87875


Use Java 7's diamond notation.

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

Branch: refs/heads/master
Commit: 3fad878755ca5fe4ce458b99d16ecd082a5fdb3e
Parents: 1fe1b5a
Author: Gary Gregory <ggregory@apache.org>
Authored: Fri Nov 11 14:39:27 2016 -0800
Committer: Gary Gregory <ggregory@apache.org>
Committed: Fri Nov 11 14:39:27 2016 -0800

----------------------------------------------------------------------
 .../test/java/org/apache/commons/rdf/api/AbstractDatasetTest.java  | 2 +-
 .../test/java/org/apache/commons/rdf/api/AbstractGraphTest.java    | 2 +-
 .../org/apache/commons/rdf/rdf4j/impl/RepositoryDatasetImpl.java   | 2 +-
 .../org/apache/commons/rdf/rdf4j/impl/RepositoryGraphImpl.java     | 2 +-
 .../src/main/java/org/apache/commons/rdf/simple/DatasetImpl.java   | 2 +-
 simple/src/main/java/org/apache/commons/rdf/simple/GraphImpl.java  | 2 +-
 6 files changed, 6 insertions(+), 6 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-commonsrdf/blob/3fad8787/api/src/test/java/org/apache/commons/rdf/api/AbstractDatasetTest.java
----------------------------------------------------------------------
diff --git a/api/src/test/java/org/apache/commons/rdf/api/AbstractDatasetTest.java b/api/src/test/java/org/apache/commons/rdf/api/AbstractDatasetTest.java
index 6308cc9..b853b32 100644
--- a/api/src/test/java/org/apache/commons/rdf/api/AbstractDatasetTest.java
+++ b/api/src/test/java/org/apache/commons/rdf/api/AbstractDatasetTest.java
@@ -326,7 +326,7 @@ public abstract class AbstractDatasetTest {
 
             assertEquals(4, whoIsWho.size());
             // and contains 4 unique values
-            assertEquals(4, new HashSet<BlankNodeOrIRI>(whoIsWho.values()).size());
+            assertEquals(4, new HashSet<>(whoIsWho.values()).size());
 
             BlankNodeOrIRI b1Alice = whoIsWho.get("\"Alice\"");
             assertNotNull(b1Alice);

http://git-wip-us.apache.org/repos/asf/incubator-commonsrdf/blob/3fad8787/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 2642696..a9b1b3e 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
@@ -345,7 +345,7 @@ public abstract class AbstractGraphTest {
 
             assertEquals(4, whoIsWho.size());
             // and contains 4 unique values
-            assertEquals(4, new HashSet<BlankNodeOrIRI>(whoIsWho.values()).size());
+            assertEquals(4, new HashSet<>(whoIsWho.values()).size());
 
             BlankNodeOrIRI b1Alice = whoIsWho.get("\"Alice\"");
             assertNotNull(b1Alice);

http://git-wip-us.apache.org/repos/asf/incubator-commonsrdf/blob/3fad8787/rdf4j/src/main/java/org/apache/commons/rdf/rdf4j/impl/RepositoryDatasetImpl.java
----------------------------------------------------------------------
diff --git a/rdf4j/src/main/java/org/apache/commons/rdf/rdf4j/impl/RepositoryDatasetImpl.java
b/rdf4j/src/main/java/org/apache/commons/rdf/rdf4j/impl/RepositoryDatasetImpl.java
index 1d30769..4d6b5b8 100644
--- a/rdf4j/src/main/java/org/apache/commons/rdf/rdf4j/impl/RepositoryDatasetImpl.java
+++ b/rdf4j/src/main/java/org/apache/commons/rdf/rdf4j/impl/RepositoryDatasetImpl.java
@@ -187,7 +187,7 @@ class RepositoryDatasetImpl extends AbstractRepositoryGraphLike<Quad>
implements
         Resource subj = (Resource) rdf4jTermFactory.asValue(subject);
         org.eclipse.rdf4j.model.IRI pred = (org.eclipse.rdf4j.model.IRI) rdf4jTermFactory.asValue(predicate);
         Value obj = rdf4jTermFactory.asValue(object);
-        return new ConvertedStatements<Quad>(this::getRepositoryConnection, rdf4jTermFactory::asQuad,
subj, pred, obj,
+        return new ConvertedStatements<>(this::getRepositoryConnection, rdf4jTermFactory::asQuad,
subj, pred, obj,
                 contexts);
     }
 

http://git-wip-us.apache.org/repos/asf/incubator-commonsrdf/blob/3fad8787/rdf4j/src/main/java/org/apache/commons/rdf/rdf4j/impl/RepositoryGraphImpl.java
----------------------------------------------------------------------
diff --git a/rdf4j/src/main/java/org/apache/commons/rdf/rdf4j/impl/RepositoryGraphImpl.java
b/rdf4j/src/main/java/org/apache/commons/rdf/rdf4j/impl/RepositoryGraphImpl.java
index ca07f9e..6e4d936 100644
--- a/rdf4j/src/main/java/org/apache/commons/rdf/rdf4j/impl/RepositoryGraphImpl.java
+++ b/rdf4j/src/main/java/org/apache/commons/rdf/rdf4j/impl/RepositoryGraphImpl.java
@@ -142,7 +142,7 @@ class RepositoryGraphImpl extends AbstractRepositoryGraphLike<Triple>
implements
         Resource subj = (Resource) rdf4jTermFactory.asValue(subject);
         org.eclipse.rdf4j.model.IRI pred = (org.eclipse.rdf4j.model.IRI) rdf4jTermFactory.asValue(predicate);
         Value obj = rdf4jTermFactory.asValue(object);
-        return new ConvertedStatements<Triple>(this::getRepositoryConnection, rdf4jTermFactory::asTriple,
subj, pred,
+        return new ConvertedStatements<>(this::getRepositoryConnection, rdf4jTermFactory::asTriple,
subj, pred,
                 obj, contextMask);
     }
 

http://git-wip-us.apache.org/repos/asf/incubator-commonsrdf/blob/3fad8787/simple/src/main/java/org/apache/commons/rdf/simple/DatasetImpl.java
----------------------------------------------------------------------
diff --git a/simple/src/main/java/org/apache/commons/rdf/simple/DatasetImpl.java b/simple/src/main/java/org/apache/commons/rdf/simple/DatasetImpl.java
index 9182178..94241e5 100644
--- a/simple/src/main/java/org/apache/commons/rdf/simple/DatasetImpl.java
+++ b/simple/src/main/java/org/apache/commons/rdf/simple/DatasetImpl.java
@@ -45,7 +45,7 @@ import org.apache.commons.rdf.simple.SimpleRDF.SimpleRDFTerm;
 final class DatasetImpl implements Dataset {
 
     private static final int TO_STRING_MAX = 10;
-    private final Set<Quad> quads = new HashSet<Quad>();
+    private final Set<Quad> quads = new HashSet<>();
     private final SimpleRDF factory;
 
     DatasetImpl(SimpleRDF simpleRDF) {

http://git-wip-us.apache.org/repos/asf/incubator-commonsrdf/blob/3fad8787/simple/src/main/java/org/apache/commons/rdf/simple/GraphImpl.java
----------------------------------------------------------------------
diff --git a/simple/src/main/java/org/apache/commons/rdf/simple/GraphImpl.java b/simple/src/main/java/org/apache/commons/rdf/simple/GraphImpl.java
index 84ac9a6..e54ab01 100644
--- a/simple/src/main/java/org/apache/commons/rdf/simple/GraphImpl.java
+++ b/simple/src/main/java/org/apache/commons/rdf/simple/GraphImpl.java
@@ -37,7 +37,7 @@ import java.util.stream.Stream;
 final class GraphImpl implements Graph {
 
     private static final int TO_STRING_MAX = 10;
-    private final Set<Triple> triples = new HashSet<Triple>();
+    private final Set<Triple> triples = new HashSet<>();
     private final SimpleRDF factory;
 
     GraphImpl(SimpleRDF simpleRDF) {


Mime
View raw message