From 75759de5a95c6235adb9bb53206d251b256437eb Mon Sep 17 00:00:00 2001 From: "Hassan A. Hashim" Date: Fri, 11 Jul 2025 23:47:53 +0300 Subject: [PATCH 1/5] [javadoc] Correct `human-readable` in ClassUtils Correct `human-readable` instead of `human readable`. --- src/main/java/org/apache/commons/lang3/ClassUtils.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/apache/commons/lang3/ClassUtils.java b/src/main/java/org/apache/commons/lang3/ClassUtils.java index 35958286d1e..f32f52bf7ed 100644 --- a/src/main/java/org/apache/commons/lang3/ClassUtils.java +++ b/src/main/java/org/apache/commons/lang3/ClassUtils.java @@ -41,7 +41,7 @@ *

* *

- * The notion of a {@code canonical name} includes the human readable name for the type, for example {@code int[]}. The + * The notion of a {@code canonical name} includes the human-readable name for the type, for example {@code int[]}. The * non-canonical method variants work with the JVM names, such as {@code [I}. *

* From d8d3d61c82266ff9c28b502911e9655e0b52f02c Mon Sep 17 00:00:00 2001 From: "Hassan A. Hashim" Date: Fri, 11 Jul 2025 23:51:23 +0300 Subject: [PATCH 2/5] [javadoc] Update parameter `name` in `getCanonicalName` method --- src/main/java/org/apache/commons/lang3/ClassUtils.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/apache/commons/lang3/ClassUtils.java b/src/main/java/org/apache/commons/lang3/ClassUtils.java index f32f52bf7ed..5f8f4a4c558 100644 --- a/src/main/java/org/apache/commons/lang3/ClassUtils.java +++ b/src/main/java/org/apache/commons/lang3/ClassUtils.java @@ -474,7 +474,7 @@ public static String getCanonicalName(final Object object, final String valueIfN * *

* - * @param className the name of class. + * @param name the name of class. * @return canonical form of class name. */ private static String getCanonicalName(final String name) { From a44b1786e69632c03c2fa40e4147fbf760d3e0bd Mon Sep 17 00:00:00 2001 From: "Hassan A. Hashim" Date: Fri, 11 Jul 2025 23:55:08 +0300 Subject: [PATCH 3/5] [javadoc] Fix opening parenthesis in ClassUtils --- src/main/java/org/apache/commons/lang3/ClassUtils.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/apache/commons/lang3/ClassUtils.java b/src/main/java/org/apache/commons/lang3/ClassUtils.java index 5f8f4a4c558..54e06e25a5d 100644 --- a/src/main/java/org/apache/commons/lang3/ClassUtils.java +++ b/src/main/java/org/apache/commons/lang3/ClassUtils.java @@ -767,7 +767,7 @@ static Class getPrimitiveClass(final String className) { /** * Gets the desired Method much like {@code Class.getMethod}, however it ensures that the returned Method is from a * public class or interface and not from an anonymous inner class. This means that the Method is invokable and doesn't - * fall foul of Java bug 4071957). + * fall foul of Java bug (4071957). * *
      *  {@code Set set = Collections.unmodifiableSet(...);

From a0a51c0c05135a2d83718ee003bc4e4a27a39397 Mon Sep 17 00:00:00 2001
From: "Hassan A. Hashim" 
Date: Fri, 11 Jul 2025 23:56:57 +0300
Subject: [PATCH 4/5] [javadoc] Fix repeated word in ClassUtils

---
 src/main/java/org/apache/commons/lang3/ClassUtils.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/main/java/org/apache/commons/lang3/ClassUtils.java b/src/main/java/org/apache/commons/lang3/ClassUtils.java
index 54e06e25a5d..4c77fcb7b17 100644
--- a/src/main/java/org/apache/commons/lang3/ClassUtils.java
+++ b/src/main/java/org/apache/commons/lang3/ClassUtils.java
@@ -984,7 +984,7 @@ public static String getShortClassName(final Object object, final String valueIf
      * 

* *

- * The difference is is significant only in case of classes that are inner classes of some other classes. In this case + * The difference is significant only in case of classes that are inner classes of some other classes. In this case * the separator between the outer and inner class (possibly on multiple hierarchy level) has to be {@code $} (dollar * sign) and not {@code .} (dot), as it is returned by {@code Class.getName()} *

From dbd3069aa45ec3b439c6471829b539a55477b682 Mon Sep 17 00:00:00 2001 From: "Hassan A. Hashim" Date: Fri, 11 Jul 2025 23:57:58 +0300 Subject: [PATCH 5/5] [javadoc] Fix closing parenthesis in ClassUtils --- src/main/java/org/apache/commons/lang3/ClassUtils.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/apache/commons/lang3/ClassUtils.java b/src/main/java/org/apache/commons/lang3/ClassUtils.java index 4c77fcb7b17..615838def14 100644 --- a/src/main/java/org/apache/commons/lang3/ClassUtils.java +++ b/src/main/java/org/apache/commons/lang3/ClassUtils.java @@ -997,7 +997,7 @@ public static String getShortClassName(final Object object, final String valueIf *

* Note that this method differs from {@link #getSimpleName(Class)} in that this will return, for example * {@code "Map.Entry"} whilst the {@link Class} variant will simply return {@code "Entry"}. In this example - * the argument {@code className} is the string {@code java.util.Map$Entry} (note the {@code $} sign. + * the argument {@code className} is the string {@code java.util.Map$Entry} (note the {@code $} sign). *

* * @param className the className to get the short name for. It has to be formatted as returned by