diff options
| author | Gerald Barker <geraldbarker@gmail.com> | 2011-09-03 18:21:05 +0100 |
|---|---|---|
| committer | Gerald Barker <geraldbarker@gmail.com> | 2011-09-03 18:21:05 +0100 |
| commit | 5d6cd5f76c3682f70e4fa18182849fb2110a6aca (patch) | |
| tree | 05ed634bef7aa97c6aef53dca0bae8947b790669 /src/org/apache/commons/lang3/StringUtils.java | |
| parent | 8bbc46b9514f49ebf4b9533688ca296046563ef9 (diff) | |
| download | cgeo-5d6cd5f76c3682f70e4fa18182849fb2110a6aca.zip cgeo-5d6cd5f76c3682f70e4fa18182849fb2110a6aca.tar.gz cgeo-5d6cd5f76c3682f70e4fa18182849fb2110a6aca.tar.bz2 | |
Remove @Deprecated method's from Commons code, Remove WordUtils as i'm
not using it in my refactor
Diffstat (limited to 'src/org/apache/commons/lang3/StringUtils.java')
| -rw-r--r-- | src/org/apache/commons/lang3/StringUtils.java | 32 |
1 files changed, 0 insertions, 32 deletions
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);
}
- /**
- * <p>Removes {@code separator} from the end of
- * {@code str} if it's there, otherwise leave it alone.</p>
- *
- * <p>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)}.</p>
- *
- * <pre>
- * 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"
- * </pre>
- *
- * @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
//-----------------------------------------------------------------------
/**
|
