DATAJDBC-542 - Polishing.

Initialize map with capacity. Fix generics.

Original pull request: #218.
This commit is contained in:
Mark Paluch
2020-05-14 10:40:57 +02:00
parent 30a6fb5654
commit fc74fa9975
2 changed files with 8 additions and 4 deletions

View File

@@ -37,7 +37,7 @@ public class MyBatisContext {
private final @Nullable Class domainType;
private final Map<String, Object> additionalValues;
public MyBatisContext(@Nullable Object id, @Nullable Object instance, @Nullable Class domainType,
public MyBatisContext(@Nullable Object id, @Nullable Object instance, @Nullable Class<?> domainType,
Map<String, Object> additionalValues) {
this.id = id;
@@ -78,7 +78,7 @@ public class MyBatisContext {
/**
* The entity to act upon. This is {@code null} for queries, since the object doesn't exist before the query.
*
*
* @return Might return {@code null}.
*/
@Nullable