Skip to content

Commit f71e5e2

Browse files
committed
Clean up
1 parent 1ab3482 commit f71e5e2

3 files changed

Lines changed: 3 additions & 9 deletions

File tree

src/main/java/tools/jackson/dataformat/xml/ser/NamespaceBinding.java

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,4 @@ public void write(ToXmlGenerator xmlGen, XMLStreamWriter2 sw) throws XMLStreamEx
3333
sw.setPrefix(_prefix, _namespaceURI);
3434
}
3535
}
36-
37-
public boolean isDefaultNamespace() {
38-
return _prefix == null;
39-
}
4036
}

src/main/java/tools/jackson/dataformat/xml/ser/ToXmlGenerator.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ public class ToXmlGenerator
100100
*/
101101

102102
/**
103-
* XML directives (DTD, Comments, PIs) to write, if any.
103+
* Namespace bindings to add, if any.
104104
*
105105
* @since 3.2
106106
*/
@@ -245,7 +245,7 @@ public void initDocument(boolean lfBetweenPrologDirectives,
245245
List<NamespaceBinding> nsBindings)
246246
{
247247
if (_initialized) { // sanity check
248-
_reportError("Internal error: cannot call `initConfig()` after generator already initialized");
248+
_reportError("Internal error: cannot call `initDocument()` after generator already initialized");
249249
}
250250
_namespaceBindings = nsBindings;
251251
_lfBetweenPrologDirectives = lfBetweenPrologDirectives;

src/main/java/tools/jackson/dataformat/xml/ser/XmlGeneratorInitializer.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
import java.util.ArrayList;
44
import java.util.List;
5-
import java.util.Map;
65

76
import tools.jackson.core.JacksonException;
87
import tools.jackson.core.JsonGenerator;
@@ -38,8 +37,7 @@ public class XmlGeneratorInitializer
3837
protected List<PrologDirective> _directives;
3938

4039
/**
41-
* Namespace bindings (prefix to URL) to register with
42-
* generator.
40+
* Namespace bindings (prefix to URI) to register with generator.
4341
*/
4442
protected List<NamespaceBinding> _namespaceBindings;
4543

0 commit comments

Comments
 (0)