@@ -1191,7 +1191,7 @@ private Schema clone(Schema property) {
1191
1191
1192
1192
private boolean isSubtype (AnnotatedClass childClass , Class <?> parentClass ) {
1193
1193
final BeanDescription parentDesc = _mapper .getSerializationConfig ().introspectClassAnnotations (parentClass );
1194
- List <NamedType > subTypes =_intr .findSubtypes (parentDesc .getClassInfo ());
1194
+ List <NamedType > subTypes = _intr () .findSubtypes (parentDesc .getClassInfo ());
1195
1195
if (subTypes == null ) {
1196
1196
return false ;
1197
1197
}
@@ -1238,7 +1238,7 @@ protected void _addEnumProps(Class<?> propClass, Schema property) {
1238
1238
Enum <?>[] enumConstants = enumClass .getEnumConstants ();
1239
1239
1240
1240
if (enumConstants != null ) {
1241
- String [] enumValues = _intr .findEnumValues (propClass , enumConstants ,
1241
+ String [] enumValues = _intr () .findEnumValues (propClass , enumConstants ,
1242
1242
new String [enumConstants .length ]);
1243
1243
1244
1244
for (Enum <?> en : enumConstants ) {
@@ -1264,7 +1264,7 @@ protected void _addEnumProps(Class<?> propClass, Schema property) {
1264
1264
} else if (useToString ) {
1265
1265
n = en .toString ();
1266
1266
} else {
1267
- n = _intr .findEnumValue (en );
1267
+ n = _intr () .findEnumValue (en );
1268
1268
}
1269
1269
if (property instanceof StringSchema ) {
1270
1270
StringSchema sp = (StringSchema ) property ;
@@ -1641,7 +1641,7 @@ protected void applyBeanValidatorAnnotations(Schema property, Annotation[] annot
1641
1641
}
1642
1642
1643
1643
private boolean resolveSubtypes (Schema model , BeanDescription bean , ModelConverterContext context , JsonView jsonViewAnnotation ) {
1644
- final List <NamedType > types = _intr .findSubtypes (bean .getClassInfo ());
1644
+ final List <NamedType > types = _intr () .findSubtypes (bean .getClassInfo ());
1645
1645
if (types == null ) {
1646
1646
return false ;
1647
1647
}
@@ -1777,7 +1777,7 @@ private void removeSuperClassAndInterfaceSubTypes(List<NamedType> types, BeanDes
1777
1777
private void removeSuperSubTypes (List <NamedType > resultTypes , Class <?> superClass ) {
1778
1778
JavaType superType = _mapper .constructType (superClass );
1779
1779
BeanDescription superBean = _mapper .getSerializationConfig ().introspect (superType );
1780
- final List <NamedType > superTypes = _intr .findSubtypes (superBean .getClassInfo ());
1780
+ final List <NamedType > superTypes = _intr () .findSubtypes (superBean .getClassInfo ());
1781
1781
if (superTypes != null ) {
1782
1782
resultTypes .removeAll (superTypes );
1783
1783
}
0 commit comments