Skip to content

Commit 4d1ccf4

Browse files
authored
Use Error Prone 2.37.0
1 parent ba226c0 commit 4d1ccf4

2 files changed

Lines changed: 2 additions & 4 deletions

File tree

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ ext {
6262
// * Temporarily comment out "-Werror" elsewhere in this file
6363
// * Repeatedly run `./gradlew clean compileJava` and fix all errors
6464
// * Uncomment "-Werror"
65-
errorprone : '2.36.0',
65+
errorprone : '2.37.0',
6666
]
6767
}
6868

checker/src/main/java/org/checkerframework/checker/index/upperbound/UpperBoundTransfer.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -141,9 +141,7 @@ public TransferResult<CFValue, CFStore> visitAssignment(
141141
(expNode instanceof TypeCastNode) ? ((TypeCastNode) expNode).getOperand() : expNode;
142142
// null if right-hand-side is not an array creation expression
143143
ArrayCreationNode acNode =
144-
(expNodeSansCast instanceof ArrayCreationNode)
145-
? acNode = (ArrayCreationNode) expNodeSansCast
146-
: null;
144+
(expNodeSansCast instanceof ArrayCreationNode) ? (ArrayCreationNode) expNodeSansCast : null;
147145

148146
if (acNode != null) {
149147
// Right-hand side of assignment is an array creation expression

0 commit comments

Comments
 (0)