Convert some Functions/Predicates to streams & lambdas (5)
Change-Id: I4eca94928d77a15a81678dcd91b8d6174b4f6ec3
This commit is contained in:
@@ -20,7 +20,6 @@ import static com.google.gerrit.extensions.api.changes.SubmittedTogetherOption.N
|
||||
import static com.google.gerrit.server.group.SystemGroupBackend.REGISTERED_USERS;
|
||||
import static org.eclipse.jgit.lib.Constants.HEAD;
|
||||
|
||||
import com.google.common.base.Function;
|
||||
import com.google.common.base.Optional;
|
||||
import com.google.common.base.Strings;
|
||||
import com.google.common.collect.ImmutableList;
|
||||
@@ -887,13 +886,7 @@ public abstract class AbstractDaemonTest {
|
||||
}
|
||||
|
||||
private static Iterable<String> changeIds(Iterable<ChangeInfo> changes) {
|
||||
return Iterables.transform(changes,
|
||||
new Function<ChangeInfo, String>() {
|
||||
@Override
|
||||
public String apply(ChangeInfo input) {
|
||||
return input.changeId;
|
||||
}
|
||||
});
|
||||
return Iterables.transform(changes, i -> i.changeId);
|
||||
}
|
||||
|
||||
protected void assertSubmittedTogether(String chId, String... expected)
|
||||
|
||||
Reference in New Issue
Block a user