DATAMONGO-1913 - Add missing nullable annotations to GridFsTemplate.
This commit is contained in:
@@ -57,7 +57,7 @@ public class GridFsTemplate implements GridFsOperations, ResourcePatternResolver
|
|||||||
|
|
||||||
private final MongoDbFactory dbFactory;
|
private final MongoDbFactory dbFactory;
|
||||||
|
|
||||||
private final String bucket;
|
private final @Nullable String bucket;
|
||||||
private final MongoConverter converter;
|
private final MongoConverter converter;
|
||||||
private final QueryMapper queryMapper;
|
private final QueryMapper queryMapper;
|
||||||
|
|
||||||
@@ -78,7 +78,7 @@ public class GridFsTemplate implements GridFsOperations, ResourcePatternResolver
|
|||||||
* @param converter must not be {@literal null}.
|
* @param converter must not be {@literal null}.
|
||||||
* @param bucket
|
* @param bucket
|
||||||
*/
|
*/
|
||||||
public GridFsTemplate(MongoDbFactory dbFactory, MongoConverter converter, String bucket) {
|
public GridFsTemplate(MongoDbFactory dbFactory, MongoConverter converter, @Nullable String bucket) {
|
||||||
|
|
||||||
Assert.notNull(dbFactory, "MongoDbFactory must not be null!");
|
Assert.notNull(dbFactory, "MongoDbFactory must not be null!");
|
||||||
Assert.notNull(converter, "MongoConverter must not be null!");
|
Assert.notNull(converter, "MongoConverter must not be null!");
|
||||||
|
|||||||
Reference in New Issue
Block a user