You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
import org.checkerframework.dataflow.qual.Pure;
public class Demo {
Object field;;
@Pure
public void impureMethod() {
field = new Object();
}
@Pure
public Object pureMethod() {
return field;
}
}
Outputs:
Pass without issue error
Expectation:
Error on impuremethod.
Apply -AcheckPurityAnnotations will successfully issue the error. However, run PurityChecker directly should not need the flag.
Think about how to enable it by default and add some test suite.
The text was updated successfully, but these errors were encountered:
commands:
Input:
Outputs:
Pass without issue error
Expectation:
Error on impuremethod.
Apply
-AcheckPurityAnnotations
will successfully issue the error. However, run PurityChecker directly should not need the flag.Think about how to enable it by default and add some test suite.
The text was updated successfully, but these errors were encountered: