Cleanup: Remove unsafe field in BytesStreamInput

Related to https://github.com/elastic/elasticsearch/pull/10157

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

Closes #120.
This commit is contained in:
David Pilato 2015-03-30 15:00:50 +02:00
parent 3154510fad
commit cbad7dce76
1 changed files with 1 additions and 1 deletions

View File

@ -458,7 +458,7 @@ public class AttachmentMapper extends AbstractFieldMapper<Object> {
}
}
// 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