@@ -1185,7 +1185,7 @@ private Schema clone(Schema property) {
1185
1185
1186
1186
private boolean isSubtype (AnnotatedClass childClass , Class <?> parentClass ) {
1187
1187
final BeanDescription parentDesc = _mapper .getSerializationConfig ().introspectClassAnnotations (parentClass );
1188
- List <NamedType > subTypes =_intr .findSubtypes (parentDesc .getClassInfo ());
1188
+ List <NamedType > subTypes = _intr () .findSubtypes (parentDesc .getClassInfo ());
1189
1189
if (subTypes == null ) {
1190
1190
return false ;
1191
1191
}
@@ -1232,7 +1232,7 @@ protected void _addEnumProps(Class<?> propClass, Schema property) {
1232
1232
Enum <?>[] enumConstants = enumClass .getEnumConstants ();
1233
1233
1234
1234
if (enumConstants != null ) {
1235
- String [] enumValues = _intr .findEnumValues (propClass , enumConstants ,
1235
+ String [] enumValues = _intr () .findEnumValues (propClass , enumConstants ,
1236
1236
new String [enumConstants .length ]);
1237
1237
1238
1238
for (Enum <?> en : enumConstants ) {
@@ -1258,7 +1258,7 @@ protected void _addEnumProps(Class<?> propClass, Schema property) {
1258
1258
} else if (useToString ) {
1259
1259
n = en .toString ();
1260
1260
} else {
1261
- n = _intr .findEnumValue (en );
1261
+ n = _intr () .findEnumValue (en );
1262
1262
}
1263
1263
if (property instanceof StringSchema ) {
1264
1264
StringSchema sp = (StringSchema ) property ;
@@ -1635,7 +1635,7 @@ protected void applyBeanValidatorAnnotations(Schema property, Annotation[] annot
1635
1635
}
1636
1636
1637
1637
private boolean resolveSubtypes (Schema model , BeanDescription bean , ModelConverterContext context , JsonView jsonViewAnnotation ) {
1638
- final List <NamedType > types = _intr .findSubtypes (bean .getClassInfo ());
1638
+ final List <NamedType > types = _intr () .findSubtypes (bean .getClassInfo ());
1639
1639
if (types == null ) {
1640
1640
return false ;
1641
1641
}
@@ -1771,7 +1771,7 @@ private void removeSuperClassAndInterfaceSubTypes(List<NamedType> types, BeanDes
1771
1771
private void removeSuperSubTypes (List <NamedType > resultTypes , Class <?> superClass ) {
1772
1772
JavaType superType = _mapper .constructType (superClass );
1773
1773
BeanDescription superBean = _mapper .getSerializationConfig ().introspect (superType );
1774
- final List <NamedType > superTypes = _intr .findSubtypes (superBean .getClassInfo ());
1774
+ final List <NamedType > superTypes = _intr () .findSubtypes (superBean .getClassInfo ());
1775
1775
if (superTypes != null ) {
1776
1776
resultTypes .removeAll (superTypes );
1777
1777
}
0 commit comments