File tree 1 file changed +3
-8
lines changed
jaxb/src/main/java/com/fasterxml/jackson/module/jaxb
1 file changed +3
-8
lines changed Original file line number Diff line number Diff line change @@ -59,11 +59,11 @@ public enum Priority {
59
59
/**
60
60
* Value to pass to
61
61
* {@link JaxbAnnotationIntrospector#setNameUsedForXmlValue}
62
- * if defined and non-null .
62
+ * if introspector constructed by the module .
63
63
*
64
64
* @since 2.12
65
65
*/
66
- protected String _nameUsedForXmlValue ;
66
+ protected String _nameUsedForXmlValue = JaxbAnnotationIntrospector . DEFAULT_NAME_FOR_XML_VALUE ;
67
67
68
68
/*
69
69
/**********************************************************
@@ -99,9 +99,7 @@ public void setupModule(SetupContext context)
99
99
if (_nonNillableInclusion != null ) {
100
100
intr .setNonNillableInclusion (_nonNillableInclusion );
101
101
}
102
- if (_nameUsedForXmlValue != null ) {
103
- intr .setNameUsedForXmlValue (_nameUsedForXmlValue );
104
- }
102
+ intr .setNameUsedForXmlValue (_nameUsedForXmlValue );
105
103
}
106
104
switch (_priority ) {
107
105
case PRIMARY :
@@ -158,9 +156,6 @@ public JsonInclude.Include getNonNillableInclusion() {
158
156
*/
159
157
public JaxbAnnotationModule setNameUsedForXmlValue (String name ) {
160
158
_nameUsedForXmlValue = name ;
161
- if ((name != null ) && (_introspector != null )) {
162
- _introspector .setNameUsedForXmlValue (name );
163
- }
164
159
return this ;
165
160
}
166
161
You can’t perform that action at this time.
0 commit comments