Package is by default NullMarkes when I override a Nullable methode
e.g. Super class from spring
protected @Nullable ResponseEntity<Object> handleExceptionInternal(..)
override
@Override
protected @Nullable ResponseEntity<Object> handleExceptionInternal(
final Exception ex,
@Nullable final Object body,
final HttpHeaders headers,
final HttpStatusCode statusCode,
final WebRequest request ) {
...
return super.handleExceptionInternal( ex, body, headers, statusCode, request );
}
If I remove Nullable or not have no effect: I get always “Fix the incompatbility of the annotation Nullable to honor NullMarked at package level od the overridden method”