Author: britter
Date: Thu Mar 26 10:24:19 2015
New Revision: 1669311

URL: http://svn.apache.org/r1669311
Log:
Better JavaDoc for LANG-1093: Add ClassUtils.getAbbreviatedName. This fixes #57 
from github. Thanks to Fabian Lange.

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

Modified: 
commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/ClassUtils.java
URL: 
http://svn.apache.org/viewvc/commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/ClassUtils.java?rev=1669311&r1=1669310&r2=1669311&view=diff
==============================================================================
--- 
commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/ClassUtils.java
 (original)
+++ 
commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/ClassUtils.java
 Thu Mar 26 10:24:19 2015
@@ -322,7 +322,7 @@ public class ClassUtils {
      * @param cls  the class to get the abbreviated name for, may be {@code 
null}
      * @param len  the desired length of the abbreviated name
      * @return the abbreviated name or an empty string
-     * @throws IllegalArgumentException if len <= 0
+     * @throws IllegalArgumentException if len &lt;= 0
      * @see #getAbbreviatedName(String, int)
      * @since 3.4
      */
@@ -345,7 +345,7 @@ public class ClassUtils {
      * length.</p>
      *
      * <p>The following table illustrates the algorithm:</p>
-     * <table>
+     * <table summary="abbreviation examples">
      * <tr><td>className</td><td>len</td><td>return</td></tr>
      * <tr><td>              null</td><td> 1</td><td>""</td></tr>
      * <tr><td>"java.lang.String"</td><td> 5</td><td>"j.l.String"</td></tr>
@@ -355,7 +355,7 @@ public class ClassUtils {
      * @param className  the className to get the abbreviated name for, may be 
{@code null}
      * @param len  the desired length of the abbreviated name
      * @return the abbreviated name or an empty string
-     * @throws IllegalArgumentException if len <= 0
+     * @throws IllegalArgumentException if len &lt;= 0
      * @since 3.4
      */
     public static String getAbbreviatedName(String className, int len) {


Reply via email to