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:16 UTC
(commons-beanutils) 07/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 4480cf43aba73463a98bc2b79edbcd89b7a3ad79
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Fri Jul 26 11:13:11 2024 -0400
Remove redundant parentheses
---
src/test/java/org/apache/commons/beanutils/bugs/Jira339TestCase.java | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/test/java/org/apache/commons/beanutils/bugs/Jira339TestCase.java b/src/test/java/org/apache/commons/beanutils/bugs/Jira339TestCase.java
index 3d88b2b3..cca30894 100644
--- a/src/test/java/org/apache/commons/beanutils/bugs/Jira339TestCase.java
+++ b/src/test/java/org/apache/commons/beanutils/bugs/Jira339TestCase.java
@@ -60,7 +60,7 @@ public class Jira339TestCase extends TestCase {
* @return a test suite
*/
public static Test suite() {
- return (new TestSuite(Jira339TestCase.class));
+ return new TestSuite(Jira339TestCase.class);
}
/**
@@ -105,7 +105,7 @@ public class Jira339TestCase extends TestCase {
final TestBean bean = new TestBean();
try {
- final Map<String, Object> properties = new HashMap<String, Object>();
+ final Map<String, Object> properties = new HashMap<>();
properties.put("comparator", null);
BeanUtils.populate(bean, properties);
} catch (final Throwable t) {