commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r1458495 - /commons/proper/codec/trunk/src/main/java/org/apache/commons/codec/net/Utils.java
Date Tue, 19 Mar 2013 20:19:14 GMT
Author: sebb
Date: Tue Mar 19 20:19:13 2013
New Revision: 1458495

URL: http://svn.apache.org/r1458495
Log:
Use the RADIX constant consistently

Modified:
    commons/proper/codec/trunk/src/main/java/org/apache/commons/codec/net/Utils.java

Modified: commons/proper/codec/trunk/src/main/java/org/apache/commons/codec/net/Utils.java
URL: http://svn.apache.org/viewvc/commons/proper/codec/trunk/src/main/java/org/apache/commons/codec/net/Utils.java?rev=1458495&r1=1458494&r2=1458495&view=diff
==============================================================================
--- commons/proper/codec/trunk/src/main/java/org/apache/commons/codec/net/Utils.java (original)
+++ commons/proper/codec/trunk/src/main/java/org/apache/commons/codec/net/Utils.java Tue Mar
19 20:19:13 2013
@@ -40,7 +40,7 @@ class Utils {
      *             Thrown when the byte is not valid per {@link Character#digit(char,int)}
      */
     static int digit16(final byte b) throws DecoderException {
-        final int i = Character.digit((char) b, 16);
+        final int i = Character.digit((char) b, URLCodec.RADIX);
         if (i == -1) {
             throw new DecoderException("Invalid URL encoding: not a valid digit (radix "
+ URLCodec.RADIX + "): " + b);
         }



Mime
View raw message