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
commit b7a82af9d1d1b5323976b67e9dfcc235e2e058f3 Author: Gary D. Gregory <garydgreg...@gmail.com> AuthorDate: Sun Jun 15 13:56:53 2025 -0400 Add missing test coverage for org.apache.commons.lang3.reflect.TypeUtils.parameterizeWithOwner(Type, Class<?>, Type...) --- src/test/java/org/apache/commons/lang3/reflect/TypeUtilsTest.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/test/java/org/apache/commons/lang3/reflect/TypeUtilsTest.java b/src/test/java/org/apache/commons/lang3/reflect/TypeUtilsTest.java index 83fb34932..899b42ddd 100644 --- a/src/test/java/org/apache/commons/lang3/reflect/TypeUtilsTest.java +++ b/src/test/java/org/apache/commons/lang3/reflect/TypeUtilsTest.java @@ -1003,8 +1003,10 @@ void testParameterizeVarArgsNullPointerException() { @Test void testParameterizeWithOwner() throws NoSuchFieldException { final Type owner = TypeUtils.parameterize(TypeUtilsTest.class, String.class); - final ParameterizedType dat2Type = TypeUtils.parameterizeWithOwner(owner, That.class, String.class, String.class); - assertTrue(TypeUtils.equals(getClass().getField("dat2").getGenericType(), dat2Type)); + final ParameterizedType dat2Type1 = TypeUtils.parameterizeWithOwner(owner, That.class, String.class, String.class); + assertTrue(TypeUtils.equals(getClass().getField("dat2").getGenericType(), dat2Type1)); + final ParameterizedType dat2Type2 = TypeUtils.parameterizeWithOwner(null, That.class, String.class, String.class); + assertEquals(That.class, dat2Type2.getRawType()); } @Test