Small stylistic fixes to ReviewersUtil and AccountState
+ GroupAsReviewer is an inner class but doesn’t refer to the outer class. It can be marked static. + ACCOUNT_ID_FUNCTION is constant case and never changed, so mark it as final. Change-Id: Ieb9346c577adaa3d8460649cb4525ad06d44ad7d
This commit is contained in:
@@ -276,7 +276,7 @@ public class ReviewersUtil {
|
||||
suggestReviewers.getLimit()));
|
||||
}
|
||||
|
||||
private class GroupAsReviewer {
|
||||
private static class GroupAsReviewer {
|
||||
boolean allowed;
|
||||
boolean allowedWithConfirmation;
|
||||
int size;
|
||||
|
||||
@@ -35,7 +35,7 @@ import java.util.Map;
|
||||
import java.util.Set;
|
||||
|
||||
public class AccountState {
|
||||
public static Function<AccountState, Account.Id> ACCOUNT_ID_FUNCTION =
|
||||
public static final Function<AccountState, Account.Id> ACCOUNT_ID_FUNCTION =
|
||||
new Function<AccountState, Account.Id>() {
|
||||
@Override
|
||||
public Account.Id apply(AccountState in) {
|
||||
|
||||
Reference in New Issue
Block a user