You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by gg...@apache.org on 2020/11/26 15:00:37 UTC

[commons-lang] branch master updated: Don't need local var.

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 c2da7e3  Don't need local var.
c2da7e3 is described below

commit c2da7e3c511f6a74c2450d612a61887b8be8fcab
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Thu Nov 26 10:00:32 2020 -0500

    Don't need local var.
---
 src/main/java/org/apache/commons/lang3/reflect/TypeUtils.java | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/src/main/java/org/apache/commons/lang3/reflect/TypeUtils.java b/src/main/java/org/apache/commons/lang3/reflect/TypeUtils.java
index 0d20e6c..5580274 100644
--- a/src/main/java/org/apache/commons/lang3/reflect/TypeUtils.java
+++ b/src/main/java/org/apache/commons/lang3/reflect/TypeUtils.java
@@ -373,8 +373,7 @@ public class TypeUtils {
                 || containsTypeVariables(getImplicitUpperBounds(wild)[0]);
         }
         if (type instanceof GenericArrayType) {
-            final GenericArrayType array = (GenericArrayType) type;
-            return containsTypeVariables(array.getGenericComponentType());
+            return containsTypeVariables(((GenericArrayType) type).getGenericComponentType());
         }
         return false;
     }