You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by no...@apache.org on 2015/08/06 21:29:32 UTC

svn commit: r1694559 - /lucene/dev/branches/branch_5x/solr/core/src/java/org/apache/solr/security/RuleBasedAuthorizationPlugin.java

Author: noble
Date: Thu Aug  6 19:29:32 2015
New Revision: 1694559

URL: http://svn.apache.org/r1694559
Log:
SOLR-7838: Predicate is not available in Java 7

Modified:
    lucene/dev/branches/branch_5x/solr/core/src/java/org/apache/solr/security/RuleBasedAuthorizationPlugin.java

Modified: lucene/dev/branches/branch_5x/solr/core/src/java/org/apache/solr/security/RuleBasedAuthorizationPlugin.java
URL: http://svn.apache.org/viewvc/lucene/dev/branches/branch_5x/solr/core/src/java/org/apache/solr/security/RuleBasedAuthorizationPlugin.java?rev=1694559&r1=1694558&r2=1694559&view=diff
==============================================================================
--- lucene/dev/branches/branch_5x/solr/core/src/java/org/apache/solr/security/RuleBasedAuthorizationPlugin.java (original)
+++ lucene/dev/branches/branch_5x/solr/core/src/java/org/apache/solr/security/RuleBasedAuthorizationPlugin.java Thu Aug  6 19:29:32 2015
@@ -29,7 +29,6 @@ import java.util.List;
 import java.util.Map;
 import java.util.Objects;
 import java.util.Set;
-import java.util.function.Predicate;
 
 import com.google.common.collect.ImmutableSet;
 import org.apache.solr.common.SolrException;
@@ -445,5 +444,13 @@ public class RuleBasedAuthorizationPlugi
     System.out.println(Utils.toJSONString(well_known_permissions));
 
   }
+  /**For making the code work in Java 7.
+   * In trunk it uses the Predicate interface in jdk
+   * //todo remove when upgrading to java 8
+   */
+  public interface Predicate<T> {
+
+    boolean test(T t);
+  }
 
 }