Skip to content

Commit 2e6b31d

Browse files
committed
Fix console compiler warning: TypeUtils.java:[361,33] non-varargs call
of varargs method with inexact argument type for last parameter
1 parent 7ef3ff3 commit 2e6b31d

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/changes/changes.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ The <action> type attribute can be add,update,fix,remove.
5454
ClassUtils.getClass(ClassLoader, String),
5555
ClassUtils.getClass(String, boolean),
5656
ClassUtils.getClass(String).</action>
57+
<action type="fix" dev="ggregory" due-to="Gary Gregory">Fix console compiler warning: TypeUtils.java:[361,33] non-varargs call of varargs method with inexact argument type for last parameter.</action>
5758
<!-- ADD -->
5859
<!-- UPDATE -->
5960
</release>

src/main/java/org/apache/commons/lang3/reflect/TypeUtils.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -358,7 +358,7 @@ private static <T> String classToString(final Class<T> cls) {
358358
buf.append(cls.getName());
359359
}
360360
if (cls.getTypeParameters().length > 0) {
361-
GT_JOINER.join(buf, (TypeVariable[]) cls.getTypeParameters());
361+
GT_JOINER.join(buf, (Object[]) cls.getTypeParameters());
362362
}
363363
return buf.toString();
364364
}

0 commit comments

Comments
 (0)