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 2022/04/28 14:52:59 UTC
[commons-beanutils] 23/23: In-line single use variable for return.
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-beanutils.git
commit 9bc6e9e0ce2d6fea9ed30acc123355d9997e73b0
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Thu Apr 28 08:30:58 2022 -0400
In-line single use variable for return.
---
src/main/java/org/apache/commons/beanutils2/PropertyUtilsBean.java | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/src/main/java/org/apache/commons/beanutils2/PropertyUtilsBean.java b/src/main/java/org/apache/commons/beanutils2/PropertyUtilsBean.java
index 0f323db4..9912d7b4 100644
--- a/src/main/java/org/apache/commons/beanutils2/PropertyUtilsBean.java
+++ b/src/main/java/org/apache/commons/beanutils2/PropertyUtilsBean.java
@@ -1195,8 +1195,7 @@ public class PropertyUtilsBean {
}
// Call the property getter and return the value
- final Object value = invokeMethod(readMethod, bean, BeanUtils.EMPTY_OBJECT_ARRAY);
- return value;
+ return invokeMethod(readMethod, bean, BeanUtils.EMPTY_OBJECT_ARRAY);
}
/**