creadur-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pottlin...@apache.org
Subject svn commit: r1819190 - /creadur/rat/trunk/apache-rat-core/src/main/java/org/apache/rat/document/impl/guesser/BinaryGuesser.java
Date Sat, 23 Dec 2017 23:17:22 GMT
Author: pottlinger
Date: Sat Dec 23 23:17:22 2017
New Revision: 1819190

URL: http://svn.apache.org/viewvc?rev=1819190&view=rev
Log:
RAT-234: Fix typo in constant name 

Modified:
    creadur/rat/trunk/apache-rat-core/src/main/java/org/apache/rat/document/impl/guesser/BinaryGuesser.java

Modified: creadur/rat/trunk/apache-rat-core/src/main/java/org/apache/rat/document/impl/guesser/BinaryGuesser.java
URL: http://svn.apache.org/viewvc/creadur/rat/trunk/apache-rat-core/src/main/java/org/apache/rat/document/impl/guesser/BinaryGuesser.java?rev=1819190&r1=1819189&r2=1819190&view=diff
==============================================================================
--- creadur/rat/trunk/apache-rat-core/src/main/java/org/apache/rat/document/impl/guesser/BinaryGuesser.java
(original)
+++ creadur/rat/trunk/apache-rat-core/src/main/java/org/apache/rat/document/impl/guesser/BinaryGuesser.java
Sat Dec 23 23:17:22 2017
@@ -62,8 +62,8 @@ public class BinaryGuesser {
         final int length = taste.length();
         for (int i = 0; i < length; i++) {
             char c = taste.charAt(i);
-            if (c > BinaryGuesser.NON_ASCII_THREASHOLD
-                    || c <= BinaryGuesser.ASCII_CHAR_THREASHOLD) {
+            if (c > BinaryGuesser.NON_ASCII_THRESHOLD
+                    || c <= BinaryGuesser.ASCII_CHAR_THRESHOLD) {
                 highBytes++;
             }
         }
@@ -358,8 +358,8 @@ public class BinaryGuesser {
     public static final String JAVA = "JAVA";
     public static final int HIGH_BYTES_RATIO = 100;
     public static final int TOTAL_READ_RATIO = 30;
-    public static final int NON_ASCII_THREASHOLD = 256;
-    public static final int ASCII_CHAR_THREASHOLD = 8;
+    public static final int NON_ASCII_THRESHOLD = 256;
+    public static final int ASCII_CHAR_THRESHOLD = 8;
 
     public static final boolean isBinary(final Document document) {
         // TODO: reimplement the binary test algorithm?



Mime
View raw message