We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The check performed by @RequiresDetToString sometimes prints an error when it shouldn't, such as in this class,
@RequiresDetToString
import org.checkerframework.checker.determinism.qual.*; public class C { public static void f() { System.out.printf("%s", true ? "" : ""); } }
I get the error
C.java:5: error: [nondeterministic.tostring] java.lang.Object does not override toString() deterministically System.out.printf("%s", true ? "" : ""); ^
This doesn't happen if we just write System.out.printf("%s", "");. It must have something to do with the ternary operator in this case.
System.out.printf("%s", "");
The text was updated successfully, but these errors were encountered:
Fix toString check for ternary; fixes t-rasmud#178
651b12e
Fix toString check for ternary; fixes #178 (#188)
8d15e83
jwaataja
No branches or pull requests
The check performed by
@RequiresDetToString
sometimes prints an error when it shouldn't, such as in this class,I get the error
This doesn't happen if we just write
System.out.printf("%s", "");
. It must have something to do with the ternary operator in this case.The text was updated successfully, but these errors were encountered: