jena-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From a...@apache.org
Subject [4/9] jena git commit: Remove unnecessary suppressed warnings.
Date Mon, 25 Jul 2016 08:36:36 GMT
Remove unnecessary suppressed warnings.

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

Branch: refs/heads/master
Commit: 3cc29462470f86c07e12581611f0e67ff1cc2a61
Parents: bcd7e40
Author: Andy Seaborne <andy@apache.org>
Authored: Sun Jul 24 12:04:34 2016 +0100
Committer: Andy Seaborne <andy@apache.org>
Committed: Sun Jul 24 12:04:34 2016 +0100

----------------------------------------------------------------------
 .../src/test/java/org/apache/jena/riot/lang/TestLangNTriples.java | 1 -
 .../src/test/java/org/apache/jena/riot/lang/TestLangRdfJson.java  | 1 -
 .../test/java/org/apache/jena/riot/lang/TestParserFactory.java    | 3 ---
 .../src/test/java/org/apache/jena/riot/lang/TestTurtleTerms.java  | 1 -
 4 files changed, 6 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/jena/blob/3cc29462/jena-arq/src/test/java/org/apache/jena/riot/lang/TestLangNTriples.java
----------------------------------------------------------------------
diff --git a/jena-arq/src/test/java/org/apache/jena/riot/lang/TestLangNTriples.java b/jena-arq/src/test/java/org/apache/jena/riot/lang/TestLangNTriples.java
index 18112fb..a808d2f 100644
--- a/jena-arq/src/test/java/org/apache/jena/riot/lang/TestLangNTriples.java
+++ b/jena-arq/src/test/java/org/apache/jena/riot/lang/TestLangNTriples.java
@@ -104,7 +104,6 @@ public class TestLangNTriples extends TestLangNTuples
         String string = StrUtils.strjoin("\n", strings);
         Tokenizer tokenizer = tokenizer(charSpace, string);
         StreamRDFCounting sink = StreamRDFLib.count();
-        @SuppressWarnings("deprecation")
         LangNTriples x = RiotParsers.createParserNTriples(tokenizer, sink);
         x.getProfile().setHandler(new ErrorHandlerEx());
         x.parse();

http://git-wip-us.apache.org/repos/asf/jena/blob/3cc29462/jena-arq/src/test/java/org/apache/jena/riot/lang/TestLangRdfJson.java
----------------------------------------------------------------------
diff --git a/jena-arq/src/test/java/org/apache/jena/riot/lang/TestLangRdfJson.java b/jena-arq/src/test/java/org/apache/jena/riot/lang/TestLangRdfJson.java
index 5fef1fe..950d6c3 100644
--- a/jena-arq/src/test/java/org/apache/jena/riot/lang/TestLangRdfJson.java
+++ b/jena-arq/src/test/java/org/apache/jena/riot/lang/TestLangRdfJson.java
@@ -446,7 +446,6 @@ public class TestLangRdfJson extends BaseTest
 		ByteArrayInputStream in = new ByteArrayInputStream(b);
 		Tokenizer tokenizer = TokenizerFactory.makeTokenizerUTF8(in) ;
         StreamRDFCounting sink = StreamRDFLib.count() ;
-        @SuppressWarnings("deprecation")
 		LangRDFJSON parser = RiotParsers.createParserRdfJson(tokenizer, sink) ;
 	}
 

http://git-wip-us.apache.org/repos/asf/jena/blob/3cc29462/jena-arq/src/test/java/org/apache/jena/riot/lang/TestParserFactory.java
----------------------------------------------------------------------
diff --git a/jena-arq/src/test/java/org/apache/jena/riot/lang/TestParserFactory.java b/jena-arq/src/test/java/org/apache/jena/riot/lang/TestParserFactory.java
index 413d333..94411b5 100644
--- a/jena-arq/src/test/java/org/apache/jena/riot/lang/TestParserFactory.java
+++ b/jena-arq/src/test/java/org/apache/jena/riot/lang/TestParserFactory.java
@@ -77,7 +77,6 @@ public class TestParserFactory extends BaseTest
         // Old style, deprecated.
         Tokenizer tokenizer = TokenizerFactory.makeTokenizerString("<x> <p> <q>
.") ;
         CatchParserOutput sink = new CatchParserOutput() ;
-        @SuppressWarnings("deprecation")
         LangRIOT parser = RiotParsers.createParserNTriples(tokenizer, sink) ;
         parserSetup(parser) ;
         parser.parse();
@@ -104,7 +103,6 @@ public class TestParserFactory extends BaseTest
         // Old style, deprecated.
         Tokenizer tokenizer = TokenizerFactory.makeTokenizerString("<x> <p> <q>
.") ; 
         CatchParserOutput sink = new CatchParserOutput() ;
-        @SuppressWarnings("deprecation")
         LangRIOT parser = RiotParsers.createParserTurtle(tokenizer, "http://base/", sink)
;
         parserSetup(parser) ;
         parser.parse();
@@ -130,7 +128,6 @@ public class TestParserFactory extends BaseTest
         // Old style, deprecated.
         Tokenizer tokenizer = TokenizerFactory.makeTokenizerString("<x> <p> <q>
<g>.") ; 
         CatchParserOutput sink = new CatchParserOutput() ;
-        @SuppressWarnings("deprecation")
         LangRIOT parser = RiotParsers.createParserNQuads(tokenizer, sink) ;
         parserSetup(parser) ;
         parser.parse();

http://git-wip-us.apache.org/repos/asf/jena/blob/3cc29462/jena-arq/src/test/java/org/apache/jena/riot/lang/TestTurtleTerms.java
----------------------------------------------------------------------
diff --git a/jena-arq/src/test/java/org/apache/jena/riot/lang/TestTurtleTerms.java b/jena-arq/src/test/java/org/apache/jena/riot/lang/TestTurtleTerms.java
index 662bdb7..5eeb0b0 100644
--- a/jena-arq/src/test/java/org/apache/jena/riot/lang/TestTurtleTerms.java
+++ b/jena-arq/src/test/java/org/apache/jena/riot/lang/TestTurtleTerms.java
@@ -243,7 +243,6 @@ public class TestTurtleTerms extends BaseTest
 	    
 	    Tokenizer tokenizer = TokenizerFactory.makeTokenizerString(testString) ;
 	    StreamRDF sink = StreamRDFLib.sinkNull() ;
-	    @SuppressWarnings("deprecation")
         LangTurtle parser = RiotParsers.createParserTurtle(tokenizer, "http://base/", sink)
;
 	    PrefixMap prefixMap = parser.getProfile().getPrologue().getPrefixMap() ;
 


Mime
View raw message