Better JavaDoc for LANG-1093: Add ClassUtils.getAbbreviatedName. This fixes #57 from github. Thanks to Fabian Lange.

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1669311 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Benedikt Ritter 2015-03-26 10:24:19 +00:00
parent c8e96c0c73
commit a211ef288c
1 changed files with 3 additions and 3 deletions

View File

@ -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) {