inponomarev commented on code in PR #1591:
URL: https://github.com/apache/commons-lang/pull/1591#discussion_r2737302871
##########
src/main/java/org/apache/commons/lang3/ClassUtils.java:
##########
@@ -1011,11 +1013,6 @@ public static String getShortCanonicalName(final String
canonicalName) {
/**
* Gets the class name minus the package name from a {@link Class}.
*
- * <p>
Review Comment:
I need some help here. IMO, the existing JavaDoc puts it quite clear:
```
@return the class name without the package name or an empty string. If the
class is an inner class then the returned
* value will contain the outer class or classes separated with
{@code .} (dot) character.
```
What kind of examples do we need here? Something like this?
```java
package a.b;
class Outer {
class Inner {}
}
ClassUtils.getShortClassName(Outer.Inner.class)) == "Outer.Inner"
```
isn't it quite obvious already?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]