Skip to content

Commit

Permalink
Use EISOP Checker Framework version 3.34.0-eisop1
Browse files Browse the repository at this point in the history
Fixes #3843.

Fixes #3918

FUTURE_COPYBARA_INTEGRATE_REVIEW=#3918 from wmdietl:support-jdk21-ea 02b3d6f
PiperOrigin-RevId: 533140132
  • Loading branch information
wmdietl authored and Error Prone Team committed May 18, 2023
1 parent 31d420b commit 265b682
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 4 deletions.
2 changes: 1 addition & 1 deletion check_api/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
</dependency>
<dependency>
<!-- GPLv2 with Classpath Exception -->
<groupId>org.checkerframework</groupId>
<groupId>io.github.eisop</groupId>
<artifactId>dataflow-errorprone</artifactId>
<version>${dataflow.version}</version>
</dependency>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@
import org.checkerframework.errorprone.dataflow.cfg.node.DoubleLiteralNode;
import org.checkerframework.errorprone.dataflow.cfg.node.EqualToNode;
import org.checkerframework.errorprone.dataflow.cfg.node.ExplicitThisNode;
import org.checkerframework.errorprone.dataflow.cfg.node.ExpressionStatementNode;
import org.checkerframework.errorprone.dataflow.cfg.node.FieldAccessNode;
import org.checkerframework.errorprone.dataflow.cfg.node.FloatLiteralNode;
import org.checkerframework.errorprone.dataflow.cfg.node.FloatingDivisionNode;
Expand Down Expand Up @@ -1019,6 +1020,20 @@ Nullness visitClassDeclaration() {
return NULLABLE;
}

@Override
public final TransferResult<Nullness, AccessPathStore<Nullness>> visitExpressionStatement(
ExpressionStatementNode node, TransferInput<Nullness, AccessPathStore<Nullness>> input) {
/*
* The fact that something is an expression statement is presumably irrelevant to nullness. So
* probably no code looks at this result. And if the statement needs to update the store
* somehow, that gets handled by the other visit* methods. I think.
*
* See
* https://github.com/eisop/checker-framework/blob/7c5e731da5665cba0612e8c85287d380fd66e924/dataflow/src/main/java/org/checkerframework/dataflow/cfg/node/ExpressionStatementNode.java#L20
*/
return noStoreChanges(NONNULL, input);
}

private static final class ReadableUpdates implements Updates {
final Map<AccessPath, Nullness> values = new HashMap<>();

Expand Down
2 changes: 1 addition & 1 deletion core/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@
</dependency>
<dependency>
<!-- GPLv2 with Classpath Exception -->
<groupId>org.checkerframework</groupId>
<groupId>io.github.eisop</groupId>
<artifactId>dataflow-errorprone</artifactId>
<version>${dataflow.version}</version>
</dependency>
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
<autoservice.version>1.0.1</autoservice.version>
<autovalue.version>1.9</autovalue.version>
<junit.version>4.13.2</junit.version>
<dataflow.version>3.27.0</dataflow.version>
<dataflow.version>3.34.0-eisop1</dataflow.version>
<mockito.version>4.9.0</mockito.version>
<compile.testing.version>0.19</compile.testing.version>
<caffeine.version>3.0.5</caffeine.version>
Expand Down
2 changes: 1 addition & 1 deletion test_helpers/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@
</dependency>
<dependency>
<!-- GPLv2 with Classpath Exception -->
<groupId>org.checkerframework</groupId>
<groupId>io.github.eisop</groupId>
<artifactId>dataflow-errorprone</artifactId>
<version>${dataflow.version}</version>
</dependency>
Expand Down

0 comments on commit 265b682

Please sign in to comment.