mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-18 03:01:05 +01:00
refactor: replace anonymous types with lambdas
This commit is contained in:
@@ -33,14 +33,13 @@ package sonia.scm.plugin;
|
||||
|
||||
//~--- non-JDK imports --------------------------------------------------------
|
||||
|
||||
import com.google.common.base.Predicate;
|
||||
import com.google.common.collect.Iterables;
|
||||
import com.google.common.collect.Lists;
|
||||
|
||||
//~--- JDK imports ------------------------------------------------------------
|
||||
|
||||
import java.util.List;
|
||||
|
||||
//~--- JDK imports ------------------------------------------------------------
|
||||
|
||||
/**
|
||||
*
|
||||
* @author Sebastian Sdorra
|
||||
@@ -96,15 +95,7 @@ public final class PluginNode
|
||||
*/
|
||||
public PluginNode getChild(final String id)
|
||||
{
|
||||
return Iterables.find(children, new Predicate<PluginNode>()
|
||||
{
|
||||
|
||||
@Override
|
||||
public boolean apply(PluginNode node)
|
||||
{
|
||||
return node.getId().equals(id);
|
||||
}
|
||||
});
|
||||
return Iterables.find(children, node -> node.getId().equals(id));
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user