diff options
author | Mark Spruiell <mes@zeroc.com> | 2002-10-12 00:13:14 +0000 |
---|---|---|
committer | Mark Spruiell <mes@zeroc.com> | 2002-10-12 00:13:14 +0000 |
commit | 74373e5f65a2d4a46729d8fef1016ecf8da9c2e7 (patch) | |
tree | e30f199fba4cfe16c962321245f1c1b36e0c7c82 /java/src/IceInternal/StringUtil.java | |
parent | removing join() from shutdown hook (diff) | |
download | ice-74373e5f65a2d4a46729d8fef1016ecf8da9c2e7.tar.bz2 ice-74373e5f65a2d4a46729d8fef1016ecf8da9c2e7.tar.xz ice-74373e5f65a2d4a46729d8fef1016ecf8da9c2e7.zip |
bug fix
Diffstat (limited to 'java/src/IceInternal/StringUtil.java')
-rw-r--r-- | java/src/IceInternal/StringUtil.java | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/java/src/IceInternal/StringUtil.java b/java/src/IceInternal/StringUtil.java index 70605b0a296..6d7b0c4bf99 100644 --- a/java/src/IceInternal/StringUtil.java +++ b/java/src/IceInternal/StringUtil.java @@ -184,8 +184,7 @@ public final class StringUtil // // Decodes a UTF8 string. Decoding starts at the given start position - // (inclusive) and stops at the given end position (exclusive). If the end - // position is zero, then the remainder of the string is used. Upon success, + // (inclusive) and stops at the given end position (exclusive). Upon success, // the result parameter holds the decoded string and true is returned. // A return value of false indicates an error was detected in the encoding. // @@ -193,10 +192,6 @@ public final class StringUtil decodeString(String s, int start, int end, Ice.StringHolder result) { final int len = s.length(); - if(end == 0) - { - end = len; - } assert(start >= 0); assert(end <= len); assert(start <= end); |