checker-framework
checker-framework copied to clipboard
Add `@SideEffectsOnly` annotation
@mernst The tests are failing:
org.checkerframework.framework.test.junit.SideEffectsOnlyTest > run[/__w/1/s/framework/sideeffectsonly] FAILED
java.lang.AssertionError: 16 out of 16 expected diagnostics were found.
2 unexpected diagnostics were found:
CheckSideEffectsOnly.java:12: error: (purity.incorrect.sideeffectsonly)
CheckSideEffectsOnly.java:17: error: (purity.incorrect.sideeffectsonly)
FYI this commit d4230fe7e043425aa366da2981ca473eef632e7f is the latest good commit before my merge to make refinement happen for local variables.
Failing test case is fixed with a JDK annotation (not merged).