Skip to content

Commit

Permalink
Tika 4137 (#1353)
Browse files Browse the repository at this point in the history
* TIKA-4137 -- Building current Tika main branch fails under Java 20/21

Authored-by: thorsten <[email protected]>
(cherry picked from commit 72a81a1)
  • Loading branch information
theit authored and tballison committed May 15, 2024
1 parent f72c110 commit 492bbc6
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -676,6 +676,7 @@ private StreamingOutput produceOutput(final InputStream is, Metadata metadata,
handler.getTransformer().setOutputProperty(OutputKeys.METHOD, format);
handler.getTransformer().setOutputProperty(OutputKeys.INDENT, "yes");
handler.getTransformer().setOutputProperty(OutputKeys.ENCODING, UTF_8.name());
handler.getTransformer().setOutputProperty(OutputKeys.VERSION, "1.1");
handler.setResult(new StreamResult(writer));
content = new ExpandedTitleContentHandler(handler);
} catch (TransformerConfigurationException e) {
Expand Down

0 comments on commit 492bbc6

Please sign in to comment.