From 5d6cd5f76c3682f70e4fa18182849fb2110a6aca Mon Sep 17 00:00:00 2001 From: Gerald Barker Date: Sat, 3 Sep 2011 18:21:05 +0100 Subject: Remove @Deprecated method's from Commons code, Remove WordUtils as i'm not using it in my refactor --- src/org/apache/commons/lang3/StringUtils.java | 32 --------------------------- 1 file changed, 32 deletions(-) (limited to 'src/org/apache/commons/lang3/StringUtils.java') diff --git a/src/org/apache/commons/lang3/StringUtils.java b/src/org/apache/commons/lang3/StringUtils.java index 0960e1a..9ea5de4 100644 --- a/src/org/apache/commons/lang3/StringUtils.java +++ b/src/org/apache/commons/lang3/StringUtils.java @@ -4356,38 +4356,6 @@ public class StringUtils { return str.substring(0, lastIdx); } - /** - *

Removes {@code separator} from the end of - * {@code str} if it's there, otherwise leave it alone.

- * - *

NOTE: This method changed in version 2.0. - * It now more closely matches Perl chomp. - * For the previous behavior, use {@link #substringBeforeLast(String, String)}. - * This method uses {@link String#endsWith(String)}.

- * - *
-     * StringUtils.chomp(null, *)         = null
-     * StringUtils.chomp("", *)           = ""
-     * StringUtils.chomp("foobar", "bar") = "foo"
-     * StringUtils.chomp("foobar", "baz") = "foobar"
-     * StringUtils.chomp("foo", "foo")    = ""
-     * StringUtils.chomp("foo ", "foo")   = "foo "
-     * StringUtils.chomp(" foo", "foo")   = " "
-     * StringUtils.chomp("foo", "foooo")  = "foo"
-     * StringUtils.chomp("foo", "")       = "foo"
-     * StringUtils.chomp("foo", null)     = "foo"
-     * 
- * - * @param str the String to chomp from, may be null - * @param separator separator String, may be null - * @return String without trailing separator, {@code null} if null String input - * @deprecated This feature will be removed in Lang 4.0 - */ - @Deprecated - public static String chomp(String str, String separator) { - return removeEnd(str,separator); - } - // Chopping //----------------------------------------------------------------------- /** -- cgit v1.1