DATAMONGO-2423 - Polishing.

Update nullability annotations and reduce visibility in tests.

Original pull request: #815.
This commit is contained in:
Christoph Strobl
2019-12-11 10:06:02 +01:00
committed by Mark Paluch
parent a9e50b28df
commit 5cffaf9d73
3 changed files with 2 additions and 2 deletions

View File

@@ -184,7 +184,6 @@ public class GeospatialIndex implements IndexDefinition {
return document;
}
@Nullable
public Document getIndexOptions() {
Document document = new Document();

View File

@@ -30,7 +30,7 @@ public class CachingMongoPersistentProperty extends BasicMongoPersistentProperty
private @Nullable Boolean isIdProperty;
private @Nullable Boolean isAssociation;
private @Nullable boolean dbRefResolved;
private boolean dbRefResolved;
private @Nullable DBRef dbref;
private @Nullable String fieldName;
private @Nullable Class<?> fieldType;

View File

@@ -101,6 +101,7 @@ public class MapReduceResults<T> implements Iterable<T> {
return outputCollection;
}
@Nullable
public Document getRawResults() {
return rawResults;
}