Error Prone: Enable and fix OperatorPrecedence

Change-Id: I1c9e79a37cba650b1526793fc7997544bb99aafc
This commit is contained in:
Dave Borowitz 2019-05-24 10:57:09 -07:00 committed by David Pursehouse
parent 17ef12713b
commit edd57a21d6
2 changed files with 2 additions and 2 deletions

View File

@ -656,7 +656,7 @@ public class SubmoduleOp {
int newSize = msgbuf.length() + bullet.length() + message.length();
if (++numMessages > maxCommitMessages
|| newSize > maxCombinedCommitMessageSize
|| iter.hasNext() && (newSize + ellipsis.length()) > maxCombinedCommitMessageSize) {
|| (iter.hasNext() && (newSize + ellipsis.length()) > maxCombinedCommitMessageSize)) {
msgbuf.append(ellipsis);
break;
}

View File

@ -65,7 +65,7 @@ java_package_configuration(
"-Xep:NullableConstructor:WARN",
"-Xep:NullablePrimitive:WARN",
"-Xep:NullableVoid:WARN",
"-Xep:OperatorPrecedence:WARN",
"-Xep:OperatorPrecedence:ERROR",
"-Xep:OverridesGuiceInjectableMethod:WARN",
"-Xep:PreconditionsInvalidPlaceholder:WARN",
"-Xep:ProtoFieldPreconditionsCheckNotNull:WARN",