@@ -1083,7 +1083,7 @@ private Schema clone(Schema property) {
1083
1083
1084
1084
private boolean isSubtype (AnnotatedClass childClass , Class <?> parentClass ) {
1085
1085
final BeanDescription parentDesc = _mapper .getSerializationConfig ().introspectClassAnnotations (parentClass );
1086
- List <NamedType > subTypes =_intr .findSubtypes (parentDesc .getClassInfo ());
1086
+ List <NamedType > subTypes = _intr () .findSubtypes (parentDesc .getClassInfo ());
1087
1087
if (subTypes == null ) {
1088
1088
return false ;
1089
1089
}
@@ -1130,7 +1130,7 @@ protected void _addEnumProps(Class<?> propClass, Schema property) {
1130
1130
Enum <?>[] enumConstants = enumClass .getEnumConstants ();
1131
1131
1132
1132
if (enumConstants != null ) {
1133
- String [] enumValues = _intr .findEnumValues (propClass , enumConstants ,
1133
+ String [] enumValues = _intr () .findEnumValues (propClass , enumConstants ,
1134
1134
new String [enumConstants .length ]);
1135
1135
1136
1136
for (Enum <?> en : enumConstants ) {
@@ -1156,7 +1156,7 @@ protected void _addEnumProps(Class<?> propClass, Schema property) {
1156
1156
} else if (useToString ) {
1157
1157
n = en .toString ();
1158
1158
} else {
1159
- n = _intr .findEnumValue (en );
1159
+ n = _intr () .findEnumValue (en );
1160
1160
}
1161
1161
if (property instanceof StringSchema ) {
1162
1162
StringSchema sp = (StringSchema ) property ;
@@ -1526,7 +1526,7 @@ protected void applyBeanValidatorAnnotations(Schema property, Annotation[] annot
1526
1526
}
1527
1527
1528
1528
private boolean resolveSubtypes (Schema model , BeanDescription bean , ModelConverterContext context , JsonView jsonViewAnnotation ) {
1529
- final List <NamedType > types = _intr .findSubtypes (bean .getClassInfo ());
1529
+ final List <NamedType > types = _intr () .findSubtypes (bean .getClassInfo ());
1530
1530
if (types == null ) {
1531
1531
return false ;
1532
1532
}
@@ -1662,7 +1662,7 @@ private void removeSuperClassAndInterfaceSubTypes(List<NamedType> types, BeanDes
1662
1662
private void removeSuperSubTypes (List <NamedType > resultTypes , Class <?> superClass ) {
1663
1663
JavaType superType = _mapper .constructType (superClass );
1664
1664
BeanDescription superBean = _mapper .getSerializationConfig ().introspect (superType );
1665
- final List <NamedType > superTypes = _intr .findSubtypes (superBean .getClassInfo ());
1665
+ final List <NamedType > superTypes = _intr () .findSubtypes (superBean .getClassInfo ());
1666
1666
if (superTypes != null ) {
1667
1667
resultTypes .removeAll (superTypes );
1668
1668
}
0 commit comments