commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From st...@apache.org
Subject [2/2] commons-rdf git commit: Try to calm down rawtype warnings
Date Tue, 20 Feb 2018 11:27:24 GMT
Try to calm down rawtype warnings

Really this Option system needs refinement so they
also can be ensured to be serializable


Project: http://git-wip-us.apache.org/repos/asf/commons-rdf/repo
Commit: http://git-wip-us.apache.org/repos/asf/commons-rdf/commit/996e40a2
Tree: http://git-wip-us.apache.org/repos/asf/commons-rdf/tree/996e40a2
Diff: http://git-wip-us.apache.org/repos/asf/commons-rdf/diff/996e40a2

Branch: refs/heads/fluent-parser
Commit: 996e40a294998874b97bee5741459cfcc618c563
Parents: f68f53d
Author: Stian Soiland-Reyes <stain@apache.org>
Authored: Tue Feb 20 11:26:50 2018 +0000
Committer: Stian Soiland-Reyes <stain@apache.org>
Committed: Tue Feb 20 11:26:50 2018 +0000

----------------------------------------------------------------------
 .../org/apache/commons/rdf/api/io/ImmutableParserConfigImpl.java | 4 +++-
 .../java/org/apache/commons/rdf/api/io/MutableParserConfig.java  | 1 -
 .../src/main/java/org/apache/commons/rdf/api/io/Writer.java      | 4 ----
 3 files changed, 3 insertions(+), 6 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/commons-rdf/blob/996e40a2/commons-rdf-api/src/main/java/org/apache/commons/rdf/api/io/ImmutableParserConfigImpl.java
----------------------------------------------------------------------
diff --git a/commons-rdf-api/src/main/java/org/apache/commons/rdf/api/io/ImmutableParserConfigImpl.java
b/commons-rdf-api/src/main/java/org/apache/commons/rdf/api/io/ImmutableParserConfigImpl.java
index 5dea128..25be678 100644
--- a/commons-rdf-api/src/main/java/org/apache/commons/rdf/api/io/ImmutableParserConfigImpl.java
+++ b/commons-rdf-api/src/main/java/org/apache/commons/rdf/api/io/ImmutableParserConfigImpl.java
@@ -23,7 +23,6 @@ import java.util.HashMap;
 import java.util.Map;
 import java.util.Objects;
 import java.util.Optional;
-import java.util.concurrent.ExecutorService;
 
 import org.apache.commons.rdf.api.IRI;
 import org.apache.commons.rdf.api.RDF;
@@ -34,6 +33,7 @@ class ImmutableParserConfigImpl implements ImmutableParserConfig, Serializable
{
 	
 	private static final long serialVersionUID = 1L;
 
+	@SuppressWarnings("rawtypes")
 	@Override
 	public Optional<ParserSource> source() {
 		return Optional.empty();
@@ -44,6 +44,7 @@ class ImmutableParserConfigImpl implements ImmutableParserConfig, Serializable
{
 		return Optional.empty();
 	}
 
+	@SuppressWarnings("rawtypes")	
 	@Override
 	public Optional<ParserTarget> target() {
 		return Optional.empty();
@@ -59,6 +60,7 @@ class ImmutableParserConfigImpl implements ImmutableParserConfig, Serializable
{
 		return Optional.empty();
 	}
 
+	@SuppressWarnings("rawtypes")
 	@Override
 	public Map<Option, Object> options() {
 		// Always a fresh map, so that our children can

http://git-wip-us.apache.org/repos/asf/commons-rdf/blob/996e40a2/commons-rdf-api/src/main/java/org/apache/commons/rdf/api/io/MutableParserConfig.java
----------------------------------------------------------------------
diff --git a/commons-rdf-api/src/main/java/org/apache/commons/rdf/api/io/MutableParserConfig.java
b/commons-rdf-api/src/main/java/org/apache/commons/rdf/api/io/MutableParserConfig.java
index c99407e..b38a9f8 100644
--- a/commons-rdf-api/src/main/java/org/apache/commons/rdf/api/io/MutableParserConfig.java
+++ b/commons-rdf-api/src/main/java/org/apache/commons/rdf/api/io/MutableParserConfig.java
@@ -20,7 +20,6 @@ import java.io.Serializable;
 import java.util.HashMap;
 import java.util.Map;
 import java.util.Optional;
-import java.util.concurrent.ExecutorService;
 
 import org.apache.commons.rdf.api.IRI;
 import org.apache.commons.rdf.api.RDF;

http://git-wip-us.apache.org/repos/asf/commons-rdf/blob/996e40a2/commons-rdf-api/src/main/java/org/apache/commons/rdf/api/io/Writer.java
----------------------------------------------------------------------
diff --git a/commons-rdf-api/src/main/java/org/apache/commons/rdf/api/io/Writer.java b/commons-rdf-api/src/main/java/org/apache/commons/rdf/api/io/Writer.java
index 5267e97..1dceb99 100644
--- a/commons-rdf-api/src/main/java/org/apache/commons/rdf/api/io/Writer.java
+++ b/commons-rdf-api/src/main/java/org/apache/commons/rdf/api/io/Writer.java
@@ -16,10 +16,6 @@
  */
 package org.apache.commons.rdf.api.io;
 
-import java.util.concurrent.ExecutorService;
-import java.util.concurrent.Executors;
-import java.util.concurrent.Future;
-
 public interface Writer {
 
 	@SuppressWarnings("rawtypes")


Mime
View raw message