You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by tr...@apache.org on 2004/07/22 22:03:25 UTC
cvs commit: jakarta-commons-sandbox/id/src/java/org/apache/commons/id/uuid UUID.java
treilly 2004/07/22 13:03:25
Modified: id/src/java/org/apache/commons/id/uuid UUID.java
Log:
Remove hex char validation since included w codec 1.3
Revision Changes Path
1.9 +1 -8 jakarta-commons-sandbox/id/src/java/org/apache/commons/id/uuid/UUID.java
Index: UUID.java
===================================================================
RCS file: /home/cvs/jakarta-commons-sandbox/id/src/java/org/apache/commons/id/uuid/UUID.java,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -r1.8 -r1.9
--- UUID.java 14 Jun 2004 12:50:50 -0000 1.8
+++ UUID.java 22 Jul 2004 20:03:25 -0000 1.9
@@ -185,13 +185,6 @@
//Create from the hex value
try {
char[] chars = buf.toString().toCharArray();
- //TODO Remove check once codec 1.3 is released
- for (int i = 0; i < chars.length; i++) {
- if (Character.digit(chars[i], 16) == -1) {
- throw new UUIDFormatException();
- }
- }
- // end check
tmpUUID = new UUID(Hex.decodeHex(chars));
} catch (DecoderException de) {
throw new UUIDFormatException(de.getMessage());
---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org