diff options
author | Andrew John Hughes <gnu_andrew@member.fsf.org> | 2008-06-06 00:23:49 +0000 |
---|---|---|
committer | Andrew John Hughes <gnu_andrew@member.fsf.org> | 2008-06-06 00:23:49 +0000 |
commit | f28c88e32f53e83ef1b386c97958066984d6a11f (patch) | |
tree | 98d710b752918402e66daaf14b425cc0e91a4bde /java | |
parent | 1fa39147d72da64af6e348ec7c96264de4950bfc (diff) | |
download | classpath-f28c88e32f53e83ef1b386c97958066984d6a11f.tar.gz |
2008-06-06 Andrew John Hughes <gnu_andrew@member.fsf.org>
* java/lang/Integer.java:
(parseInt(String, int, boolean)): Disallow "-+".
Diffstat (limited to 'java')
-rw-r--r-- | java/lang/Integer.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/java/lang/Integer.java b/java/lang/Integer.java index 8a5514a81..83161b4bf 100644 --- a/java/lang/Integer.java +++ b/java/lang/Integer.java @@ -783,7 +783,7 @@ public final class Integer extends Number implements Comparable<Integer> isNeg = true; ch = str.charAt(++index); } - if (ch == '+') + else if (ch == '+') { if (len == 1) throw new NumberFormatException("pure '+'"); |