Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
1.4-RC5, 1.4-RC6, 1.4-RC7, 1.4.0
-
None
-
None
-
trunk
Description
trying to understand the code I failed to see in which case the first two if statments hold true.
this smells so bad, I didn't check beyond.
public static String fromEscapedUnicode(String escapedUnicodeString)
{
int off = 0;
char[] in = escapedUnicodeString.toCharArray();
int len = in.length;
char[] convtBuf = new char[len];
if (convtBuf.length < len)
{
int newLen = len * 2;
if (newLen < 0)
convtBuf = new char[newLen];
}
[...]