Skip to content

Commit 4b82dbc

Browse files
authored
Merge pull request #357 from jfdenise/GAL-368
GAL-368 Fix FormattingXmlStreamWriter.writeStartElement(...) delegation
2 parents 4689297 + 55bbbe1 commit 4b82dbc

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

common-api/src/main/java/org/jboss/galleon/xml/util/FormattingXmlStreamWriter.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2016-2023 Red Hat, Inc. and/or its affiliates
2+
* Copyright 2016-2024 Red Hat, Inc. and/or its affiliates
33
* and other contributors as indicated by the @author tags.
44
*
55
* Licensed under the Apache License, Version 2.0 (the "License");
@@ -108,7 +108,7 @@ public void writeStartElement(final String prefix, final String localName, final
108108
// If this is a nested element flush the outer
109109
nl();
110110
indent();
111-
delegate.writeStartElement(prefix, namespaceURI, localName);
111+
delegate.writeStartElement(prefix, localName, namespaceURI);
112112
level++;
113113
state = START_ELEMENT;
114114
indentEndElement = false;
@@ -124,7 +124,7 @@ public void writeEmptyElement(final String namespaceURI, final String localName)
124124
public void writeEmptyElement(final String prefix, final String localName, final String namespaceURI) throws XMLStreamException {
125125
nl();
126126
indent();
127-
delegate.writeEmptyElement(prefix, namespaceURI, localName);
127+
delegate.writeEmptyElement(prefix, localName, namespaceURI);
128128
state = END_ELEMENT;
129129
}
130130

@@ -429,4 +429,4 @@ public void remove() {
429429
}
430430
}
431431

432-
}
432+
}

core/src/main/java/org/jboss/galleon/xml/util/FormattingXmlStreamWriter.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2016-2023 Red Hat, Inc. and/or its affiliates
2+
* Copyright 2016-2024 Red Hat, Inc. and/or its affiliates
33
* and other contributors as indicated by the @author tags.
44
*
55
* Licensed under the Apache License, Version 2.0 (the "License");
@@ -115,7 +115,7 @@ public void writeStartElement(final String prefix, final String localName, final
115115
// If this is a nested element flush the outer
116116
nl();
117117
indent();
118-
delegate.writeStartElement(prefix, namespaceURI, localName);
118+
delegate.writeStartElement(prefix, localName, namespaceURI);
119119
level++;
120120
state = START_ELEMENT;
121121
indentEndElement = false;
@@ -131,7 +131,7 @@ public void writeEmptyElement(final String namespaceURI, final String localName)
131131
public void writeEmptyElement(final String prefix, final String localName, final String namespaceURI) throws XMLStreamException {
132132
nl();
133133
indent();
134-
delegate.writeEmptyElement(prefix, namespaceURI, localName);
134+
delegate.writeEmptyElement(prefix, localName, namespaceURI);
135135
state = END_ELEMENT;
136136
}
137137

@@ -436,4 +436,4 @@ public void remove() {
436436
}
437437
}
438438

439-
}
439+
}

0 commit comments

Comments
 (0)