jena-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From a...@apache.org
Subject [2/7] jena git commit: Use Java8 idiom.
Date Sat, 08 Oct 2016 16:26:14 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/98c94f24
Tree: http://git-wip-us.apache.org/repos/asf/jena/tree/98c94f24
Diff: http://git-wip-us.apache.org/repos/asf/jena/diff/98c94f24

Branch: refs/heads/master
Commit: 98c94f2410ce58e9ce8c760f499004a1cb69198c
Parents: 74b70d7
Author: Andy Seaborne <andy@apache.org>
Authored: Sat Oct 8 16:22:19 2016 +0100
Committer: Andy Seaborne <andy@apache.org>
Committed: Sat Oct 8 16:22:49 2016 +0100

----------------------------------------------------------------------
 .../org/apache/jena/sparql/engine/ResultSetCheckCondition.java | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/jena/blob/98c94f24/jena-arq/src/main/java/org/apache/jena/sparql/engine/ResultSetCheckCondition.java
----------------------------------------------------------------------
diff --git a/jena-arq/src/main/java/org/apache/jena/sparql/engine/ResultSetCheckCondition.java
b/jena-arq/src/main/java/org/apache/jena/sparql/engine/ResultSetCheckCondition.java
index 117f71b..be45915 100644
--- a/jena-arq/src/main/java/org/apache/jena/sparql/engine/ResultSetCheckCondition.java
+++ b/jena-arq/src/main/java/org/apache/jena/sparql/engine/ResultSetCheckCondition.java
@@ -45,12 +45,8 @@ public class ResultSetCheckCondition implements ResultSet
         this.condition = condition ;
     }
 
-    // Feel free to replace with a lambda expression for Java8!
     private static Condition checkQExec(final QueryExecution qExec) {
-        return new Condition() {
-            @Override
-            public boolean check() { return ! qExec.isClosed() ; }  
-        } ;
+        return ()-> ! qExec.isClosed() ;  
     }
 
     @Override


Mime
View raw message