Skip to content

Commit 4ed92eb

Browse files
committed
Use the RADIX constant consistently
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/codec/trunk@1458495 13f79535-47bb-0310-9956-ffa450edef68
1 parent c9ea60c commit 4ed92eb

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • src/main/java/org/apache/commons/codec/net

src/main/java/org/apache/commons/codec/net/Utils.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ class Utils {
4040
* Thrown when the byte is not valid per {@link Character#digit(char,int)}
4141
*/
4242
static int digit16(final byte b) throws DecoderException {
43-
final int i = Character.digit((char) b, 16);
43+
final int i = Character.digit((char) b, URLCodec.RADIX);
4444
if (i == -1) {
4545
throw new DecoderException("Invalid URL encoding: not a valid digit (radix " + URLCodec.RADIX + "): " + b);
4646
}

0 commit comments

Comments
 (0)