Remove Guava reference in PeepholePermalink public API
package jenkins.model;
-import com.google.common.base.Predicate;
+import java.util.function.Predicate;
import hudson.Extension;
import hudson.Util;
import hudson.model.Job;
@@ -74,6 +74,11 @@ public abstract class PeepholePermalink extends Permalink implements Predicate<R
*/
public abstract boolean apply(Run<?,?> run);
+ @Override
+ public boolean test(Run<?, ?> run) {
+ return apply(run);
+ }
+
/** @deprecated No longer used. */
@Deprecated
protected File getPermalinkFile(Job<?,?> job) {
