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
The current method org.checkerframework.checker.nullness.NullnessUtil#castNonNull(@Nullable T ref) does not provde a way to describe the reference, so the assertion error would be hard to understand.
What do you think if an extra parameter was added?
@vlsi Thanks for the suggestion. You can use the extra arguments if you build from source, or you can wait for the next release at the beginning of August.
For now I've added my own castNonNull method, and the key driver was that IntelliJ IDEA somehow fails to decompile checkerframework.jar (I've filed an issue), so it doesn't understand castNonNull ensures non-nullness.
The current method
org.checkerframework.checker.nullness.NullnessUtil#castNonNull(@Nullable T ref)
does not provde a way to describe the reference, so the assertion error would be hard to understand.What do you think if an extra parameter was added?
Sample:
The text was updated successfully, but these errors were encountered: