commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From t.@apache.org
Subject svn commit: r1396313 - in /commons/proper/lang/trunk/src: changes/changes.xml main/java/org/apache/commons/lang3/StringUtils.java
Date Tue, 09 Oct 2012 20:58:51 GMT
Author: tn
Date: Tue Oct  9 20:58:50 2012
New Revision: 1396313

URL: http://svn.apache.org/viewvc?rev=1396313&view=rev
Log:
[LANG-844] Fix javadoc of StringUtils.center methods, thanks to John Lindwall.

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

Modified: commons/proper/lang/trunk/src/changes/changes.xml
URL: http://svn.apache.org/viewvc/commons/proper/lang/trunk/src/changes/changes.xml?rev=1396313&r1=1396312&r2=1396313&view=diff
==============================================================================
--- commons/proper/lang/trunk/src/changes/changes.xml (original)
+++ commons/proper/lang/trunk/src/changes/changes.xml Tue Oct  9 20:58:50 2012
@@ -22,6 +22,7 @@
   <body>
 
   <release version="3.2" date="TBA" description="Next release">
+    <action issue="LANG-844" type="fix">Fix examples contained in javadoc of StringUtils.center
methods</action>
     <action issue="LANG-839" type="update">ArrayUtils removeElements methods use unnecessary
HashSet</action>
     <action issue="LANG-838" type="update">ArrayUtils removeElements methods clone
temporary index arrays unnecessarily</action>
     <action issue="LANG-832" type="fix">FastDateParser does not handle unterminated
quotes correctly</action>

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=1396313&r1=1396312&r2=1396313&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 Tue
Oct  9 20:58:50 2012
@@ -4735,7 +4735,7 @@ public class StringUtils {
      * StringUtils.center(null, *, *)     = null
      * StringUtils.center("", 4, ' ')     = "    "
      * StringUtils.center("ab", -1, ' ')  = "ab"
-     * StringUtils.center("ab", 4, ' ')   = " ab"
+     * StringUtils.center("ab", 4, ' ')   = " ab "
      * StringUtils.center("abcd", 2, ' ') = "abcd"
      * StringUtils.center("a", 4, ' ')    = " a  "
      * StringUtils.center("a", 4, 'y')    = "yayy"
@@ -4773,7 +4773,7 @@ public class StringUtils {
      * StringUtils.center(null, *, *)     = null
      * StringUtils.center("", 4, " ")     = "    "
      * StringUtils.center("ab", -1, " ")  = "ab"
-     * StringUtils.center("ab", 4, " ")   = " ab"
+     * StringUtils.center("ab", 4, " ")   = " ab "
      * StringUtils.center("abcd", 2, " ") = "abcd"
      * StringUtils.center("a", 4, " ")    = " a  "
      * StringUtils.center("a", 4, "yz")   = "yayz"



Mime
View raw message