Skip to content

Commit

Permalink
Cleanup: Remove unsafe field in BytesStreamInput
Browse files Browse the repository at this point in the history
Related to elastic#10157

BytesStreamInput does not support anymore `BytesStreamInput(byte[], boolean)`

Closes elastic#120.
  • Loading branch information
dadoonet committed Mar 30, 2015
1 parent 3154510 commit cbad7dc
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -458,7 +458,7 @@ public void parse(ParseContext context) throws IOException {
}
}
// Set the maximum length of strings returned by the parseToString method, -1 sets no limit
parsedContent = tika.parseToString(new BytesStreamInput(content, false), metadata, indexedChars);
parsedContent = tika.parseToString(new BytesStreamInput(content), metadata, indexedChars);
} catch (Throwable e) {
// It could happen that Tika adds a System property `sun.font.fontmanager` which should not happen
// TODO Remove when this will be fixed in Tika. See https://issues.apache.org/jira/browse/TIKA-1548
Expand Down

0 comments on commit cbad7dc

Please sign in to comment.