Skip to content

Commit ea335f0

Browse files
committed
Polishing.
Add missing override annotations. See #2508
1 parent 6a52f27 commit ea335f0

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

src/main/java/org/springframework/data/convert/DefaultTypeMapper.java

+4
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,7 @@ public DefaultTypeMapper(TypeAliasAccessor<S> accessor,
112112
* @see org.springframework.data.convert.TypeMapper#readType(java.lang.Object)
113113
*/
114114
@Nullable
115+
@Override
115116
public TypeInformation<?> readType(S source) {
116117

117118
Assert.notNull(source, "Source object must not be null!");
@@ -142,6 +143,7 @@ private TypeInformation<?> getFromCacheOrCreate(Alias alias) {
142143
* (non-Javadoc)
143144
* @see org.springframework.data.convert.TypeMapper#readType(java.lang.Object, org.springframework.data.util.TypeInformation)
144145
*/
146+
@Override
145147
public <T> TypeInformation<? extends T> readType(S source, TypeInformation<T> basicType) {
146148

147149
Assert.notNull(source, "Source must not be null!");
@@ -198,6 +200,7 @@ protected TypeInformation<?> getFallbackTypeFor(S source) {
198200
* (non-Javadoc)
199201
* @see org.springframework.data.convert.TypeMapper#writeType(java.lang.Class, java.lang.Object)
200202
*/
203+
@Override
201204
public void writeType(Class<?> type, S dbObject) {
202205
writeType(ClassTypeInformation.from(type), dbObject);
203206
}
@@ -206,6 +209,7 @@ public void writeType(Class<?> type, S dbObject) {
206209
* (non-Javadoc)
207210
* @see org.springframework.data.convert.TypeMapper#writeType(org.springframework.data.util.TypeInformation, java.lang.Object)
208211
*/
212+
@Override
209213
public void writeType(TypeInformation<?> info, S sink) {
210214

211215
Assert.notNull(info, "TypeInformation must not be null!");

src/main/java/org/springframework/data/convert/SimpleTypeInformationMapper.java

+1
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ public TypeInformation<?> resolveTypeFrom(Alias alias) {
6969
* @param type must not be {@literal null}.
7070
* @return the String representation to be stored or {@literal null} if no type information shall be stored.
7171
*/
72+
@Override
7273
public Alias createAliasFor(TypeInformation<?> type) {
7374
return Alias.of(type.getType().getName());
7475
}

0 commit comments

Comments
 (0)