rschmitt commented on code in PR #612:
URL: https://github.com/apache/creadur-rat/pull/612#discussion_r2702873897
##########
apache-rat-core/src/main/java/org/apache/rat/analysis/TikaProcessor.java:
##########
@@ -165,7 +165,8 @@ public static String process(final Document document)
throws RatDocumentAnalysis
* @throws UnsupportedCharsetException on unsupported charset.
*/
private static Charset detectCharset(final InputStream stream, final
DocumentName documentName) throws IOException, UnsupportedCharsetException {
- CharsetDetector encodingDetector = new CharsetDetector();
+ final int bytesForCharsetDetection = 256;
Review Comment:
> Or use 256 implicitly in the constructor instead?
This would have been my preference, but it triggered a Checkstyle failure.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]