Skip to content

Commit

Permalink
Fix compilation error.
Browse files Browse the repository at this point in the history
  • Loading branch information
wrandelshofer committed Aug 9, 2024
1 parent 4a10db6 commit ae73dbf
Showing 1 changed file with 5 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -762,12 +762,7 @@ public void writeNamespace(String prefix, String namespaceURI) {

@Override
public void writeProcessingInstruction(String target) throws XMLStreamException {
Objects.requireNonNull(target, "target");
closeStartTagOrCloseEmptyElemTag();
write(START_PROCESSING_INSTRUCTION);
write(target);
write(END_PROCESSING_INSTRUCTION);
write
writeProcessingInstruction(target, "");
}

@Override
Expand All @@ -776,10 +771,11 @@ public void writeProcessingInstruction(String target, String data) throws XMLStr
closeStartTagOrCloseEmptyElemTag();
write(START_PROCESSING_INSTRUCTION);
write(target);
write(SPACE);
write(data);
if (!data.isEmpty()) {
write(SPACE);
write(data);
}
write(END_PROCESSING_INSTRUCTION);

}

@Override
Expand Down

0 comments on commit ae73dbf

Please sign in to comment.