From b90085500ddfee96febba6b7149eea2cdfbf3157 Mon Sep 17 00:00:00 2001 From: Juergen Hoeller Date: Thu, 7 May 2015 15:54:55 +0200 Subject: [PATCH] Revert introduction of isNotEmpty aliases Issue: SPR-12009 --- .../org/springframework/util/StringUtils.java | 32 ------------------- 1 file changed, 32 deletions(-) diff --git a/spring-core/src/main/java/org/springframework/util/StringUtils.java b/spring-core/src/main/java/org/springframework/util/StringUtils.java index ea9c3bf2ed..bad42bfbae 100644 --- a/spring-core/src/main/java/org/springframework/util/StringUtils.java +++ b/spring-core/src/main/java/org/springframework/util/StringUtils.java @@ -79,43 +79,11 @@ public abstract class StringUtils { * Objects since attributes may e.g. be primitive value objects as well. * @param str the candidate String * @since 3.2.1 - * @see #isNotEmpty(CharSequence) - * @see #isNotEmpty(String) */ public static boolean isEmpty(Object str) { return (str == null || "".equals(str)); } - /** - * Check that the given {@code CharSequence} is not empty (i.e., neither - * {@code null} nor of length 0). - *

This method is an alias for {@link #hasLength(CharSequence)}. - *

Note: this method returns {@code true} for a {@code CharSequence} - * that purely consists of whitespace. - * @param str the {@code CharSequence} to check (may be {@code null}) - * @return {@code true} if the {@code CharSequence} is not {@code null} and has length - * @see #hasText(CharSequence) - * @since 4.2 - */ - public static boolean isNotEmpty(CharSequence str) { - return hasLength(str); - } - - /** - * Check that the given {@code String} is not empty (i.e., neither - * {@code null} nor of length 0). - *

This method is an alias for {@link #hasLength(String)}. - *

Note: this method returns {@code true} for a {@code String} that - * purely consists of whitespace. - * @param str the {@code String} to check (may be {@code null}) - * @return {@code true} if the {@code String} is not {@code null} and has length - * @see #hasText(String) - * @since 4.2 - */ - public static boolean isNotEmpty(String str) { - return hasLength(str); - } - /** * Check that the given {@code CharSequence} is neither {@code null} nor * of length 0.