From 06e4efd93c3d69cc03c907d16abb20e187e4346a Mon Sep 17 00:00:00 2001 From: James Roseborough Date: Tue, 22 Apr 2008 17:34:54 +0000 Subject: [PATCH] Make code friendlier to jdk 1.4 compiler. --- src/debug/org/luaj/debug/j2se/StandardLuaJVM.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/debug/org/luaj/debug/j2se/StandardLuaJVM.java b/src/debug/org/luaj/debug/j2se/StandardLuaJVM.java index ea27c20c..fbdbda0e 100644 --- a/src/debug/org/luaj/debug/j2se/StandardLuaJVM.java +++ b/src/debug/org/luaj/debug/j2se/StandardLuaJVM.java @@ -109,7 +109,7 @@ public class StandardLuaJVM { !suspendOnStartStr.equalsIgnoreCase("false")) { throw new ParseException("invalid debug flag: suspendOnStart"); } - this.bSuspendOnStart = Boolean.parseBoolean(suspendOnStartStr); + this.bSuspendOnStart = "true".equals(suspendOnStartStr); System.setProperty(Platform.PROPERTY_LUAJ_DEBUG_SUSPEND_AT_START, suspendOnStartStr); } else { throw new ParseException("Invalid command line argument: " + debugOptions);