Browse Source

Suppress nullability constraint warning.

The variable in doubt is checked before in another method being the sole code path leading to the doBuild method.

See: #1980
issue/2138-query-with-pageable
Christoph Strobl 2 months ago
parent
commit
96c0e0c8f6
No known key found for this signature in database
GPG Key ID: E6054036D0C37A4B
  1. 1
      spring-data-jdbc/src/main/java/org/springframework/data/jdbc/repository/aot/JdbcCodeBlocks.java

1
spring-data-jdbc/src/main/java/org/springframework/data/jdbc/repository/aot/JdbcCodeBlocks.java

@ -557,6 +557,7 @@ class JdbcCodeBlocks {
return doBuild(); return doBuild();
} }
@SuppressWarnings("NullAway")
private CodeBlock doBuild() { private CodeBlock doBuild() {
MethodReturn methodReturn = context.getMethodReturn(); MethodReturn methodReturn = context.getMethodReturn();

Loading…
Cancel
Save