Skip to content

Commit 5dba17d

Browse files
committed
...
1 parent b9a441b commit 5dba17d

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

+11-3
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)