jena-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rve...@apache.org
Subject [09/50] [abbrv] jena git commit: Use Java8 idiom
Date Wed, 09 Sep 2015 07:44:20 GMT
Use Java8 idiom

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

Branch: refs/heads/JENA-507
Commit: abd2ca554d364bcec099cb8cd16ab11895e24aab
Parents: 3895bd4
Author: Andy Seaborne <andy@apache.org>
Authored: Mon Aug 24 11:20:44 2015 +0100
Committer: Andy Seaborne <andy@apache.org>
Committed: Mon Aug 24 11:20:44 2015 +0100

----------------------------------------------------------------------
 .../constructquads/ExampleConstructQuads.java    | 19 +++----------------
 1 file changed, 3 insertions(+), 16 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/jena/blob/abd2ca55/jena-arq/src-examples/arq/examples/constructquads/ExampleConstructQuads.java
----------------------------------------------------------------------
diff --git a/jena-arq/src-examples/arq/examples/constructquads/ExampleConstructQuads.java
b/jena-arq/src-examples/arq/examples/constructquads/ExampleConstructQuads.java
index dab9007..04be8d5 100644
--- a/jena-arq/src-examples/arq/examples/constructquads/ExampleConstructQuads.java
+++ b/jena-arq/src-examples/arq/examples/constructquads/ExampleConstructQuads.java
@@ -18,22 +18,11 @@
 
 package arq.examples.constructquads;
 
-import java.io.BufferedReader;
-import java.io.File;
-import java.io.FileNotFoundException;
-import java.io.FileReader;
-import java.io.FilenameFilter;
-import java.io.IOException;
+import java.io.* ;
 import java.util.Iterator;
 
 import org.apache.jena.graph.Triple;
-import org.apache.jena.query.Dataset;
-import org.apache.jena.query.DatasetFactory;
-import org.apache.jena.query.Query;
-import org.apache.jena.query.QueryExecution;
-import org.apache.jena.query.QueryExecutionFactory;
-import org.apache.jena.query.QueryFactory;
-import org.apache.jena.query.Syntax;
+import org.apache.jena.query.* ;
 import org.apache.jena.rdf.model.Model;
 import org.apache.jena.rdf.model.ModelFactory;
 import org.apache.jena.rdf.model.Property;
@@ -176,13 +165,11 @@ public class ExampleConstructQuads {
 		// run-construct-quad-test
 		System.out.println("run-construct-quad-test:");
 		File[] tests = new File("testing/ARQ/Syntax/Syntax-ARQ")
-				.listFiles(new FilenameFilter() {
-					public boolean accept(File dir, String fname) {
+				.listFiles((dir, fname)->{
 						if (fname.startsWith("syntax-quad-construct-")) {
 							return true;
 						}
 						return false;
-					}
 				});
 		for (File test : tests) {
 			System.out.println("======== File: "+test.getName());


Mime
View raw message