From: Bruno Sinou Date: Fri, 4 Dec 2015 16:37:34 +0000 (+0000) Subject: Fix typo in string validation X-Git-Tag: argeo-commons-2.1.31~15 X-Git-Url: http://git.argeo.org/?a=commitdiff_plain;h=5d0710a86e4f77ba6954112e2f25941066dfbed1;p=lgpl%2Fargeo-commons.git Fix typo in string validation git-svn-id: https://svn.argeo.org/commons/trunk@8680 4cfe0d0a-d680-48aa-b62c-e0a02a3f76cc --- diff --git a/org.argeo.cms/src/org/argeo/cms/forms/FormUtils.java b/org.argeo.cms/src/org/argeo/cms/forms/FormUtils.java index 400aa735c..f5745889e 100644 --- a/org.argeo.cms/src/org/argeo/cms/forms/FormUtils.java +++ b/org.argeo.cms/src/org/argeo/cms/forms/FormUtils.java @@ -14,6 +14,7 @@ import org.apache.commons.logging.LogFactory; import org.argeo.ArgeoException; import org.argeo.cms.CmsView; import org.argeo.cms.util.CmsUtils; +import org.argeo.eclipse.ui.EclipseUiUtils; import org.eclipse.jface.fieldassist.ControlDecoration; import org.eclipse.jface.fieldassist.FieldDecorationRegistry; import org.eclipse.jface.viewers.DoubleClickEvent; @@ -34,7 +35,7 @@ public class FormUtils { /** Simply checks if a string is not null nor empty */ public static boolean notEmpty(String stringToTest) { - return stringToTest == null || "".equals(stringToTest.trim()); + return EclipseUiUtils.notEmpty(stringToTest); } /** Best effort to convert a String to a calendar. Fails silently */