Skip to content

Commit 45852e1

Browse files
committed
Remove redundant extends in generics
1 parent 724d229 commit 45852e1

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
@@ -48,6 +48,7 @@ The <action> type attribute can be add,update,fix,remove.
4848
<!-- FIX -->
4949
<action type="fix" dev="ggregory" due-to="ThrawnCA">Fix spelling and grammar in StringUtils #1486.</action>
5050
<action type="fix" dev="ggregory" due-to="Michael Hausegger, Gary Gregory">Add ConversionTest assertions to increase coverage #1489.</action>
51+
<action type="fix" dev="ggregory" due-to="Boda65665, Gary Gregory">Use Class&lt;?&gt; instead of Class&lt;? extends Object&gt; in MethodUtils #1491.</action>
5152
<!-- ADD -->
5253
<!-- UPDATE -->
5354
</release>

src/main/java/org/apache/commons/lang3/ObjectUtils.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,7 @@ public static boolean anyNull(final Object... values) {
232232
public static <T> T clone(final T obj) {
233233
if (obj instanceof Cloneable) {
234234
final Object result;
235-
final Class<? extends Object> objClass = obj.getClass();
235+
final Class<?> objClass = obj.getClass();
236236
if (isArray(obj)) {
237237
final Class<?> componentType = objClass.getComponentType();
238238
if (componentType.isPrimitive()) {

0 commit comments

Comments
 (0)