Browse Source

Suppress nullability warnings.

Original Pull Request: #5067
pull/5073/head
Christoph Strobl 2 months ago
parent
commit
a18556fccb
No known key found for this signature in database
GPG Key ID: E6054036D0C37A4B
  1. 1
      spring-data-mongodb/src/main/java/org/springframework/data/mongodb/ReactiveMongoDatabaseUtils.java
  2. 1
      spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/index/IndexOperationsAdapter.java

1
spring-data-mongodb/src/main/java/org/springframework/data/mongodb/ReactiveMongoDatabaseUtils.java

@ -156,6 +156,7 @@ public class ReactiveMongoDatabaseUtils { @@ -156,6 +156,7 @@ public class ReactiveMongoDatabaseUtils {
return StringUtils.hasText(dbName) ? factory.getMongoDatabase(dbName) : factory.getMongoDatabase();
}
@SuppressWarnings("NullAway")
private static Mono<ClientSession> doGetSession(TransactionSynchronizationManager synchronizationManager,
ReactiveMongoDatabaseFactory dbFactory, SessionSynchronization sessionSynchronization) {

1
spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/index/IndexOperationsAdapter.java

@ -34,6 +34,7 @@ public interface IndexOperationsAdapter extends IndexOperations { @@ -34,6 +34,7 @@ public interface IndexOperationsAdapter extends IndexOperations {
* @param reactiveIndexOperations must not be {@literal null}.
* @return never {@literal null}
*/
@SuppressWarnings("NullAway")
static IndexOperationsAdapter blocking(ReactiveIndexOperations reactiveIndexOperations) {
Assert.notNull(reactiveIndexOperations, "ReactiveIndexOperations must not be null");

Loading…
Cancel
Save