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 d82b0653c Add missing test coverage for 
org.apache.commons.lang3.reflect.TypeUtils.isInstance(Object, Type)
d82b0653c is described below

commit d82b0653c6f8f1f3beeb3fb7c1b0e23e9de4a4f1
Author: Gary D. Gregory <garydgreg...@gmail.com>
AuthorDate: Sun Jun 15 13:33:57 2025 -0400

    Add missing test coverage for
    org.apache.commons.lang3.reflect.TypeUtils.isInstance(Object, Type)
---
 src/test/java/org/apache/commons/lang3/reflect/TypeUtilsTest.java | 1 +
 1 file changed, 1 insertion(+)

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 6c096f4fb..83fb34932 100644
--- a/src/test/java/org/apache/commons/lang3/reflect/TypeUtilsTest.java
+++ b/src/test/java/org/apache/commons/lang3/reflect/TypeUtilsTest.java
@@ -930,6 +930,7 @@ void testIsAssignableGenericListTypes() throws 
NoSuchFieldException {
     @SuppressWarnings("boxing") // boxing is deliberate here
     @Test
     void testIsInstance() throws NoSuchFieldException {
+        assertFalse(TypeUtils.isInstance(1, null));
         final Type intComparableType = 
getClass().getField("intComparable").getGenericType();
         final Type uriComparableType = 
getClass().getField("uriComparable").getGenericType();
         assertTrue(TypeUtils.isInstance(1, intComparableType));

Reply via email to