Skip to content

Commit 9e56276

Browse files
committed
Fill info for @Deprecated annotation
1 parent 4ed48b1 commit 9e56276

File tree

4 files changed

+11
-11
lines changed

4 files changed

+11
-11
lines changed

src/main/java/org/apache/ibatis/builder/BaseBuilder.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,12 +105,12 @@ protected <T> Class<? extends T> resolveClass(String alias) {
105105
}
106106
}
107107

108-
@Deprecated
108+
@Deprecated(since = "3.6.0", forRemoval = true)
109109
protected TypeHandler<?> resolveTypeHandler(Class<?> javaType, String typeHandlerAlias) {
110110
return resolveTypeHandler(null, javaType, null, typeHandlerAlias);
111111
}
112112

113-
@Deprecated
113+
@Deprecated(since = "3.6.0", forRemoval = true)
114114
protected TypeHandler<?> resolveTypeHandler(Class<?> javaType, Class<? extends TypeHandler<?>> typeHandlerType) {
115115
return resolveTypeHandler(javaType, null, typeHandlerType);
116116
}

src/main/java/org/apache/ibatis/builder/xml/XMLMapperBuilder.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ public class XMLMapperBuilder extends BaseBuilder {
6060
private final String resource;
6161
private Class<?> mapperClass;
6262

63-
@Deprecated
63+
@Deprecated(since = "3.6.0", forRemoval = true)
6464
public XMLMapperBuilder(Reader reader, Configuration configuration, String resource, Map<String, XNode> sqlFragments,
6565
String namespace) {
6666
this(reader, configuration, resource, sqlFragments);

src/main/java/org/apache/ibatis/type/TypeHandlerRegistry.java

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ public boolean hasTypeHandler(Type javaType) {
197197
return hasTypeHandler(javaType, null);
198198
}
199199

200-
@Deprecated
200+
@Deprecated(since = "3.6.0", forRemoval = true)
201201
public boolean hasTypeHandler(TypeReference<?> javaTypeReference) {
202202
return hasTypeHandler(javaTypeReference, null);
203203
}
@@ -206,12 +206,12 @@ public boolean hasTypeHandler(Type javaType, JdbcType jdbcType) {
206206
return javaType != null && getTypeHandler(javaType, jdbcType) != null;
207207
}
208208

209-
@Deprecated
209+
@Deprecated(since = "3.6.0", forRemoval = true)
210210
public boolean hasTypeHandler(TypeReference<?> javaTypeReference, JdbcType jdbcType) {
211211
return javaTypeReference != null && getTypeHandler(javaTypeReference, jdbcType) != null;
212212
}
213213

214-
@Deprecated
214+
@Deprecated(since = "3.6.0", forRemoval = true)
215215
public TypeHandler<?> getMappingTypeHandler(Class<? extends TypeHandler<?>> handlerType) {
216216
return allTypeHandlersMap.get(handlerType);
217217
}
@@ -220,7 +220,7 @@ public TypeHandler<?> getTypeHandler(Type type) {
220220
return getTypeHandler(type, null);
221221
}
222222

223-
@Deprecated
223+
@Deprecated(since = "3.6.0", forRemoval = true)
224224
public <T> TypeHandler<T> getTypeHandler(TypeReference<T> javaTypeReference) {
225225
return getTypeHandler(javaTypeReference, null);
226226
}
@@ -230,7 +230,7 @@ public TypeHandler<?> getTypeHandler(JdbcType jdbcType) {
230230
}
231231

232232
@SuppressWarnings("unchecked")
233-
@Deprecated
233+
@Deprecated(since = "3.6.0", forRemoval = true)
234234
public <T> TypeHandler<T> getTypeHandler(TypeReference<T> javaTypeReference, JdbcType jdbcType) {
235235
return (TypeHandler<T>) getTypeHandler(javaTypeReference.getRawType(), jdbcType);
236236
}
@@ -397,7 +397,7 @@ private void register(Type mappedJavaType, TypeHandler<?> handler) {
397397
register(new Type[] { mappedJavaType }, mappedJdbcTypes(handler.getClass()), handler);
398398
}
399399

400-
@Deprecated
400+
@Deprecated(since = "3.6.0", forRemoval = true)
401401
public <T> void register(TypeReference<T> javaTypeReference, TypeHandler<? extends T> handler) {
402402
register(javaTypeReference.getRawType(), handler);
403403
}
@@ -451,7 +451,7 @@ public void register(Class<?> handlerClass) {
451451

452452
// java type + handler type
453453

454-
@Deprecated
454+
@Deprecated(since = "3.6.0", forRemoval = true)
455455
public void register(String javaTypeClassName, String typeHandlerClassName) throws ClassNotFoundException {
456456
register(Resources.classForName(javaTypeClassName), Resources.classForName(typeHandlerClassName));
457457
}

src/main/java/org/apache/ibatis/type/UnknownTypeHandler.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
/**
3131
* @author Clinton Begin
3232
*/
33-
@Deprecated
33+
@Deprecated(since = "3.6.0", forRemoval = true)
3434
public class UnknownTypeHandler extends BaseTypeHandler<Object> {
3535

3636
// TODO Rename to 'configuration' after removing the 'configuration' property(deprecated property) on parent class

0 commit comments

Comments
 (0)