Skip to content

Commit 41d7c62

Browse files
committed
Severity Description Resource In Folder Location Creation Time
Unnecessary cast to type int for expression of type char. It is already compatible with the argument type int URLCodec.java Apache Jakarta Commons/codec/src/java/org/apache/commons/codec/net line 165 July 23, 2003 11:22:45 AM Unnecessary cast to type int for expression of type char. It is already compatible with the argument type int URLCodec.java Apache Jakarta Commons/codec/src/java/org/apache/commons/codec/net line 166 July 23, 2003 11:22:45 AM git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/codec/trunk@130167 13f79535-47bb-0310-9956-ffa450edef68
1 parent 18f1142 commit 41d7c62

1 file changed

Lines changed: 6 additions & 5 deletions

File tree

src/java/org/apache/commons/codec/net/URLCodec.java

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
2-
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//codec/src/java/org/apache/commons/codec/net/URLCodec.java,v 1.1 2003/07/11 16:53:28 tobrien Exp $
3-
* $Revision: 1.1 $
4-
* $Date: 2003/07/11 16:53:28 $
2+
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//codec/src/java/org/apache/commons/codec/net/URLCodec.java,v 1.2 2003/07/25 22:42:46 ggregory Exp $
3+
* $Revision: 1.2 $
4+
* $Date: 2003/07/25 22:42:46 $
55
*
66
* ====================================================================
77
*
@@ -87,6 +87,7 @@
8787
* </p>
8888
*
8989
* @author <a href="mailto:oleg@ural.ru">Oleg Kalnichevski</a>
90+
* @version $Id: URLCodec.java,v 1.2 2003/07/25 22:42:46 ggregory Exp $
9091
*/
9192

9293
public class URLCodec
@@ -162,8 +163,8 @@ public static final byte[] urlencode(BitSet urlsafe, byte[] pArray)
162163
Character.forDigit((b >> 4) & 0xF, 16));
163164
char hex2 = Character.toUpperCase(
164165
Character.forDigit(b & 0xF, 16));
165-
buffer.write((int)hex1);
166-
buffer.write((int)hex2);
166+
buffer.write(hex1);
167+
buffer.write(hex2);
167168
}
168169
}
169170
return buffer.toByteArray();

0 commit comments

Comments
 (0)