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
After I added annotation @EnsuresNonNullIf(expression = "#1", result = true) I get the errors
error: [contracts.conditional.postcondition] conditional postcondition is not satisfied when isOne returns true.
return Objects.equals(value, 1);
^
found : value is @Nullable
required: value is @NonNull
error: [contracts.conditional.postcondition] conditional postcondition is not satisfied when isOneOrZero returns true.
return Objects.equals(value, 0) || Objects.equals(value, 1);
^
found : value is @Nullable
required: value is @NonNull
I have two methods in utilityclass
After I added annotation
@EnsuresNonNullIf(expression = "#1", result = true)
I get the errorsObjects.equals
-> from jdkpackage java.util
I added jdk.astub file
but it doesn't help.
The text was updated successfully, but these errors were encountered: