Skip to content

Commit 2e8e2b5

Browse files
authored
Merge branch '3.x' into feature/record-with-jacksonxmltext
2 parents 3146147 + 5dba17d commit 2e8e2b5

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed

src/main/java/tools/jackson/dataformat/xml/XmlFactory.java

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -117,9 +117,7 @@ protected XmlFactory(int xpFeatures, int xgFeatures,
117117
}
118118

119119
/**
120-
* Constructors used by {@link XmlFactoryBuilder} for instantiation.
121-
*
122-
* @since 3.0
120+
* Constructor used by {@link XmlFactoryBuilder} for instantiation.
123121
*/
124122
protected XmlFactory(XmlFactoryBuilder b)
125123
{
@@ -131,6 +129,11 @@ protected XmlFactory(XmlFactoryBuilder b)
131129
_initFactories(_xmlInputFactory, _xmlOutputFactory);
132130
}
133131

132+
/**
133+
* Constructor used by {@link XmlFactory#copy()}
134+
*
135+
* @param src Factory to make copy of
136+
*/
134137
protected XmlFactory(XmlFactory src)
135138
{
136139
this(src, src._cfgNameForTextElement);
@@ -196,6 +199,11 @@ public TokenStreamFactory snapshot() {
196199
return this;
197200
}
198201

202+
/**
203+
* "Mutant factory" method used to allow {@code XmlMapper.Builder} to configure
204+
* name used for text elements, instead of requiring defining it via
205+
* {@code XmlFactoryBuilder}.
206+
*/
199207
public XmlFactory withNameForTextElement(String name) {
200208
if (name == null) {
201209
name = "";

0 commit comments

Comments
 (0)