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 2024/07/26 15:31:38 UTC

(commons-beanutils) 29/37: Remove redundant parentheses

This is an automated email from the ASF dual-hosted git repository.

ggregory pushed a commit to branch 1.X
in repository https://gitbox.apache.org/repos/asf/commons-beanutils.git

commit 7faa72c66d2cce60a3b83d4d2604f8a2022bdf66
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Fri Jul 26 11:21:24 2024 -0400

    Remove redundant parentheses
---
 .../java/org/apache/commons/beanutils/locale/LocaleBeanUtilsBean.java | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/main/java/org/apache/commons/beanutils/locale/LocaleBeanUtilsBean.java b/src/main/java/org/apache/commons/beanutils/locale/LocaleBeanUtilsBean.java
index 05715e26..fe086b7c 100644
--- a/src/main/java/org/apache/commons/beanutils/locale/LocaleBeanUtilsBean.java
+++ b/src/main/java/org/apache/commons/beanutils/locale/LocaleBeanUtilsBean.java
@@ -764,7 +764,7 @@ public class LocaleBeanUtilsBean extends BeanUtilsBean {
 
         Object newValue = null;
 
-        if (type.isArray() && (index < 0)) { // Scalar value into array
+        if (type.isArray() && index < 0) { // Scalar value into array
             if (value instanceof String) {
                 final String[] values = new String[1];
                 values[0] = (String) value;
@@ -817,7 +817,7 @@ public class LocaleBeanUtilsBean extends BeanUtilsBean {
 
         Object newValue = null;
 
-        if (type.isArray() && (index < 0)) { // Scalar value into array
+        if (type.isArray() && index < 0) { // Scalar value into array
             if (value instanceof String) {
                 final String[] values = new String[1];
                 values[0] = (String) value;