From e68fbafde9ba12611e8a619a219af0959ed49283 Mon Sep 17 00:00:00 2001 From: Kevin Ruland Date: Wed, 19 Sep 2012 02:49:02 +0000 Subject: [PATCH] Oops, commited syntax errors. --- .../simulation/customexpression/CustomExpression.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/core/src/net/sf/openrocket/simulation/customexpression/CustomExpression.java b/core/src/net/sf/openrocket/simulation/customexpression/CustomExpression.java index c01a0f999..c8973ed2d 100644 --- a/core/src/net/sf/openrocket/simulation/customexpression/CustomExpression.java +++ b/core/src/net/sf/openrocket/simulation/customexpression/CustomExpression.java @@ -221,8 +221,9 @@ public class CustomExpression implements Cloneable{ } public boolean checkSymbol(){ - if (StringUtil.isEmpty(symbol) + if (StringUtil.isEmpty(symbol)) { return false; + } // No bad characters for (char c : "0123456789.,()[]{}<>:#@%^&*$ ".toCharArray()) @@ -247,8 +248,9 @@ public class CustomExpression implements Cloneable{ } public boolean checkName(){ - if (StringUtil.isEmpty(name) + if (StringUtil.isEmpty(name)) { return false; + } // No characters that could mess things up saving etc for (char c : ",()[]{}<>#$".toCharArray())