DATAKV-197 - Introduce usage of nullable annotations for API validation.

Annotate all packages with Spring Frameworks @NonNullApi and @NonNullFields. Add Spring's @Nullable to methods, parameters and fields that take or produce null values. Adapted using code to make sure the IDE can evaluate the null flow properly. Fix Javadoc in places where an invalid null handling policy was advertised. Strengthened null requirements for types that expose null-instances.

Original Pull Request: #28
This commit is contained in:
Mark Paluch
2017-09-22 16:53:31 +02:00
committed by Christoph Strobl
parent f1935f73b7
commit 83057f1288
44 changed files with 330 additions and 130 deletions

View File

@@ -0,0 +1,6 @@
/**
* Repository implementation backed by generic {@link java.util.Map} instances.
*/
@org.springframework.lang.NonNullApi
@org.springframework.lang.NonNullFields
package org.springframework.data.map;

View File

@@ -0,0 +1,6 @@
/**
* Support infrastructure for the configuration of {@link java.util.Map} repositories.
*/
@org.springframework.lang.NonNullApi
@org.springframework.lang.NonNullFields
package org.springframework.data.map.repository.config;