summaryrefslogtreecommitdiff
path: root/java
diff options
context:
space:
mode:
authorAndrew John Hughes <gnu_andrew@member.fsf.org>2008-06-06 00:23:49 +0000
committerAndrew John Hughes <gnu_andrew@member.fsf.org>2008-06-06 00:23:49 +0000
commitf28c88e32f53e83ef1b386c97958066984d6a11f (patch)
tree98d710b752918402e66daaf14b425cc0e91a4bde /java
parent1fa39147d72da64af6e348ec7c96264de4950bfc (diff)
downloadclasspath-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.java2
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 '+'");