Skip to content

Commit 9c649cd

Browse files
committed
Minor cleanup
1 parent 7d112ec commit 9c649cd

File tree

1 file changed

+2
-21
lines changed

1 file changed

+2
-21
lines changed

src/main/java/com/fasterxml/jackson/databind/ser/BasicSerializerFactory.java

Lines changed: 2 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1311,9 +1311,8 @@ protected Object findFilterId(SerializationConfig config, BeanDescription beanDe
13111311
protected boolean usesStaticTyping(SerializationConfig config,
13121312
BeanDescription beanDesc, TypeSerializer typeSer)
13131313
{
1314-
/* 16-Aug-2010, tatu: If there is a (value) type serializer, we cannot force
1315-
* static typing; that would make it impossible to handle expected subtypes
1316-
*/
1314+
// 16-Aug-2010, tatu: If there is a (value) type serializer, we cannot force
1315+
// static typing; that would make it impossible to handle expected subtypes
13171316
if (typeSer != null) {
13181317
return false;
13191318
}
@@ -1324,22 +1323,4 @@ protected boolean usesStaticTyping(SerializationConfig config,
13241323
}
13251324
return config.isEnabled(MapperFeature.USE_STATIC_TYPING);
13261325
}
1327-
1328-
// Commented out in 2.9
1329-
/*
1330-
protected Class<?> _verifyAsClass(Object src, String methodName, Class<?> noneClass)
1331-
{
1332-
if (src == null) {
1333-
return null;
1334-
}
1335-
if (!(src instanceof Class)) {
1336-
throw new IllegalStateException("AnnotationIntrospector."+methodName+"() returned value of type "+src.getClass().getName()+": expected type JsonSerializer or Class<JsonSerializer> instead");
1337-
}
1338-
Class<?> cls = (Class<?>) src;
1339-
if (cls == noneClass || ClassUtil.isBogusClass(cls)) {
1340-
return null;
1341-
}
1342-
return cls;
1343-
}
1344-
*/
13451326
}

0 commit comments

Comments
 (0)