From a77afb08f24afd6798594ccca5b125c725dcc70e Mon Sep 17 00:00:00 2001 From: ray Date: Tue, 8 Nov 2005 23:57:12 +0000 Subject: [PATCH] Added isBlank(), deprecated blank(). git-svn-id: https://samskivert.googlecode.com/svn/trunk@1730 6335cc39-0255-0410-8fd6-9bcaacd3b74c --- .../src/java/com/samskivert/util/StringUtil.java | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/projects/samskivert/src/java/com/samskivert/util/StringUtil.java b/projects/samskivert/src/java/com/samskivert/util/StringUtil.java index 0594f3cd..dfcf98f4 100644 --- a/projects/samskivert/src/java/com/samskivert/util/StringUtil.java +++ b/projects/samskivert/src/java/com/samskivert/util/StringUtil.java @@ -54,8 +54,18 @@ public class StringUtil { /** * @return true if the string is null or empty, false otherwise. + * + * @deprecated use isBlank instead. */ public static boolean blank (String value) + { + return isBlank(value); + } + + /** + * @return true if the string is null or empty, false otherwise. + */ + public static boolean isBlank (String value) { return (value == null || value.trim().length() == 0); }