Skip to content

Commit 63a2316

Browse files
committed
DATAKV-206 - Polishing.
Add since tag. Original pull request: #29.
1 parent e4d37f0 commit 63a2316

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

src/main/java/org/springframework/data/keyvalue/core/KeyValueTemplate.java

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -80,13 +80,7 @@ public KeyValueTemplate(KeyValueAdapter adapter) {
8080
*/
8181
public KeyValueTemplate(KeyValueAdapter adapter,
8282
MappingContext<? extends KeyValuePersistentEntity<?, ?>, ? extends KeyValuePersistentProperty<?>> mappingContext) {
83-
84-
Assert.notNull(adapter, "Adapter must not be null!");
85-
Assert.notNull(mappingContext, "MappingContext must not be null!");
86-
87-
this.adapter = adapter;
88-
this.mappingContext = mappingContext;
89-
this.identifierGenerator = DefaultIdentifierGenerator.INSTANCE;
83+
this(adapter, mappingContext, DefaultIdentifierGenerator.INSTANCE);
9084
}
9185

9286
/**
@@ -95,6 +89,7 @@ public KeyValueTemplate(KeyValueAdapter adapter,
9589
* @param adapter must not be {@literal null}.
9690
* @param mappingContext must not be {@literal null}.
9791
* @param identifierGenerator must not be {@literal null}.
92+
* @since 2.4
9893
*/
9994
public KeyValueTemplate(KeyValueAdapter adapter,
10095
MappingContext<? extends KeyValuePersistentEntity<?, ?>, ? extends KeyValuePersistentProperty<?>> mappingContext,

0 commit comments

Comments
 (0)