Polishing.

Add missing override annotations.

See #2508
This commit is contained in:
Mark Paluch
2021-12-09 11:18:51 +01:00
parent 536dae1766
commit 8a7520091d
2 changed files with 5 additions and 0 deletions

View File

@@ -112,6 +112,7 @@ public class DefaultTypeMapper<S> implements TypeMapper<S>, BeanClassLoaderAware
* @see org.springframework.data.convert.TypeMapper#readType(java.lang.Object)
*/
@Nullable
@Override
public TypeInformation<?> readType(S source) {
Assert.notNull(source, "Source object must not be null!");
@@ -142,6 +143,7 @@ public class DefaultTypeMapper<S> implements TypeMapper<S>, BeanClassLoaderAware
* (non-Javadoc)
* @see org.springframework.data.convert.TypeMapper#readType(java.lang.Object, org.springframework.data.util.TypeInformation)
*/
@Override
public <T> TypeInformation<? extends T> readType(S source, TypeInformation<T> basicType) {
Assert.notNull(source, "Source must not be null!");
@@ -198,6 +200,7 @@ public class DefaultTypeMapper<S> implements TypeMapper<S>, BeanClassLoaderAware
* (non-Javadoc)
* @see org.springframework.data.convert.TypeMapper#writeType(java.lang.Class, java.lang.Object)
*/
@Override
public void writeType(Class<?> type, S dbObject) {
writeType(ClassTypeInformation.from(type), dbObject);
}
@@ -206,6 +209,7 @@ public class DefaultTypeMapper<S> implements TypeMapper<S>, BeanClassLoaderAware
* (non-Javadoc)
* @see org.springframework.data.convert.TypeMapper#writeType(org.springframework.data.util.TypeInformation, java.lang.Object)
*/
@Override
public void writeType(TypeInformation<?> info, S sink) {
Assert.notNull(info, "TypeInformation must not be null!");

View File

@@ -69,6 +69,7 @@ public class SimpleTypeInformationMapper implements TypeInformationMapper, BeanC
* @param type must not be {@literal null}.
* @return the String representation to be stored or {@literal null} if no type information shall be stored.
*/
@Override
public Alias createAliasFor(TypeInformation<?> type) {
return Alias.of(type.getType().getName());
}