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 2021/11/12 20:29:26 UTC

[commons-lang] branch master updated: Remove useless parentheses.

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 03b84cb  Remove useless parentheses.
03b84cb is described below

commit 03b84cb3492938980b31d8cf15fdc6aeb553d063
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Fri Nov 12 15:29:23 2021 -0500

    Remove useless parentheses.
---
 .../commons/lang3/function/FailableFunctionsTest.java    | 16 ++++++++--------
 1 file changed, 8 insertions(+), 8 deletions(-)

diff --git a/src/test/java/org/apache/commons/lang3/function/FailableFunctionsTest.java b/src/test/java/org/apache/commons/lang3/function/FailableFunctionsTest.java
index 0d57ab2..2b07e38 100644
--- a/src/test/java/org/apache/commons/lang3/function/FailableFunctionsTest.java
+++ b/src/test/java/org/apache/commons/lang3/function/FailableFunctionsTest.java
@@ -236,42 +236,42 @@ public class FailableFunctionsTest {
 
         public void testDouble(final double i) throws Throwable {
             test(throwable);
-            acceptedPrimitiveObject1 = (P) ((Double) i);
+            acceptedPrimitiveObject1 = (P) (Double) i;
         }
 
         public double testDoubleDouble(final double i, final double j) throws Throwable {
             test(throwable);
-            acceptedPrimitiveObject1 = (P) ((Double) i);
-            acceptedPrimitiveObject2 = (P) ((Double) j);
+            acceptedPrimitiveObject1 = (P) (Double) i;
+            acceptedPrimitiveObject2 = (P) (Double) j;
             return 3d;
         }
 
         public void testInt(final int i) throws Throwable {
             test(throwable);
-            acceptedPrimitiveObject1 = (P) ((Integer) i);
+            acceptedPrimitiveObject1 = (P) (Integer) i;
         }
 
         public void testLong(final long i) throws Throwable {
             test(throwable);
-            acceptedPrimitiveObject1 = (P) ((Long) i);
+            acceptedPrimitiveObject1 = (P) (Long) i;
         }
 
         public void testObjDouble(final T object, final double i) throws Throwable {
             test(throwable);
             acceptedObject = object;
-            acceptedPrimitiveObject1 = (P) ((Double) i);
+            acceptedPrimitiveObject1 = (P) (Double) i;
         }
 
         public void testObjInt(final T object, final int i) throws Throwable {
             test(throwable);
             acceptedObject = object;
-            acceptedPrimitiveObject1 = (P) ((Integer) i);
+            acceptedPrimitiveObject1 = (P) (Integer) i;
         }
 
         public void testObjLong(final T object, final long i) throws Throwable {
             test(throwable);
             acceptedObject = object;
-            acceptedPrimitiveObject1 = (P) ((Long) i);
+            acceptedPrimitiveObject1 = (P) (Long) i;
         }
     }