ottlinger commented on code in PR #612:
URL: https://github.com/apache/creadur-rat/pull/612#discussion_r2702730869


##########
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:
   Should we extract this as a constant and document it properly?



-- 
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]

Reply via email to