From a211ef288c45fdeee5f05fa4708a3d9e23d1cdd4 Mon Sep 17 00:00:00 2001 From: Benedikt Ritter Date: Thu, 26 Mar 2015 10:24:19 +0000 Subject: [PATCH] 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 --- src/main/java/org/apache/commons/lang3/ClassUtils.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/org/apache/commons/lang3/ClassUtils.java b/src/main/java/org/apache/commons/lang3/ClassUtils.java index 38558bf37..92ecb1557 100644 --- a/src/main/java/org/apache/commons/lang3/ClassUtils.java +++ b/src/main/java/org/apache/commons/lang3/ClassUtils.java @@ -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 <= 0 * @see #getAbbreviatedName(String, int) * @since 3.4 */ @@ -345,7 +345,7 @@ public class ClassUtils { * length.

* *

The following table illustrates the algorithm:

- * + *
* * * @@ -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 <= 0 * @since 3.4 */ public static String getAbbreviatedName(String className, int len) {
classNamelenreturn
null 1""
"java.lang.String" 5"j.l.String"