From f28c88e32f53e83ef1b386c97958066984d6a11f Mon Sep 17 00:00:00 2001 From: Andrew John Hughes Date: Fri, 6 Jun 2008 00:23:49 +0000 Subject: 2008-06-06 Andrew John Hughes * java/lang/Integer.java: (parseInt(String, int, boolean)): Disallow "-+". --- java/lang/Integer.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'java') 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 isNeg = true; ch = str.charAt(++index); } - if (ch == '+') + else if (ch == '+') { if (len == 1) throw new NumberFormatException("pure '+'"); -- cgit v1.2.1