This is an automated email from the ASF dual-hosted git repository. ggregory pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/commons-lang.git
The following commit(s) were added to refs/heads/master by this push: new 5a15ccb62 Add tests related to [LANG-1771] 5a15ccb62 is described below commit 5a15ccb62eb88ffa41e6b62ac944066fb121afe8 Author: Gary Gregory <garydgreg...@gmail.com> AuthorDate: Wed May 28 13:36:47 2025 -0400 Add tests related to [LANG-1771] --- src/test/java/org/apache/commons/lang3/ClassUtilsTest.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/test/java/org/apache/commons/lang3/ClassUtilsTest.java b/src/test/java/org/apache/commons/lang3/ClassUtilsTest.java index b2173beb7..9f3b3490b 100644 --- a/src/test/java/org/apache/commons/lang3/ClassUtilsTest.java +++ b/src/test/java/org/apache/commons/lang3/ClassUtilsTest.java @@ -581,6 +581,9 @@ public void test_getShortCanonicalName_String() { }.getClass().getName()); assertNull(new org.apache.commons.lang3.ClassUtilsTest() { }.getClass().getCanonicalName()); + assertEquals("String[]", ClassUtils.getShortCanonicalName(String[].class.getName())); + assertEquals("String[]", ClassUtils.getShortCanonicalName(String[].class.getCanonicalName())); + assertEquals("String[]", ClassUtils.getShortCanonicalName("String[]")); } @Test