AccountsUpdate.AccountUpdater: Remove redundant modifiers
Change-Id: Ia2b81e7804dae050f5cf907572d6a8a09f3f1cd2
Signed-off-by: Edwin Kempin <ekempin@google.com>
diff --git a/java/com/google/gerrit/server/account/AccountsUpdate.java b/java/com/google/gerrit/server/account/AccountsUpdate.java
index 21e6c5f..fb8067c 100644
--- a/java/com/google/gerrit/server/account/AccountsUpdate.java
+++ b/java/com/google/gerrit/server/account/AccountsUpdate.java
@@ -75,7 +75,7 @@
* <p>Allows to read the current state of an account and to prepare updates to it.
*/
@FunctionalInterface
- public static interface AccountUpdater {
+ public interface AccountUpdater {
/**
* Prepare updates to an account.
*
@@ -87,12 +87,11 @@
*/
void update(Account account, InternalAccountUpdate.Builder update);
- public static AccountUpdater join(List<AccountUpdater> updaters) {
+ static AccountUpdater join(List<AccountUpdater> updaters) {
return (a, u) -> updaters.stream().forEach(updater -> updater.update(a, u));
}
- public static AccountUpdater joinConsumers(
- List<Consumer<InternalAccountUpdate.Builder>> consumers) {
+ static AccountUpdater joinConsumers(List<Consumer<InternalAccountUpdate.Builder>> consumers) {
return join(Lists.transform(consumers, AccountUpdater::fromConsumer));
}