commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bay...@apache.org
Subject svn commit: r1089303 - /commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/StringUtils.java
Date Wed, 06 Apr 2011 05:16:17 GMT
Author: bayard
Date: Wed Apr  6 05:16:17 2011
New Revision: 1089303

URL: http://svn.apache.org/viewvc?rev=1089303&view=rev
Log:
Moving stripAccents to accepting String instead of CharSequence. Even though the underlying
Java API takes CharSequence, it makes for a clumsy interface and it is better to encourage
the user to handle their own toString. Related to LANG-687

Modified:
    commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/StringUtils.java

Modified: commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/StringUtils.java
URL: http://svn.apache.org/viewvc/commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/StringUtils.java?rev=1089303&r1=1089302&r2=1089303&view=diff
==============================================================================
--- commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/StringUtils.java (original)
+++ commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/StringUtils.java Wed
Apr  6 05:16:17 2011
@@ -623,7 +623,7 @@ public class StringUtils {
      * @since 3.0
      */
     // See also Lucene's ASCIIFoldingFilter (Lucene 2.9) that replaces accented characters
by their unaccented equivalent (and uncommited bug fix: https://issues.apache.org/jira/browse/LUCENE-1343?focusedCommentId=12858907&page=com.atlassian.jira.plugin.system.issuetabpanels%3Acomment-tabpanel#action_12858907).
-    public static String stripAccents(CharSequence input) {
+    public static String stripAccents(String input) {
         if(input == null) {
             return null;
         }



Mime
View raw message