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:10:51 UTC

(commons-beanutils) 03/04: Use compact array declarations

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 dfdfaf140bd88352383d568f6ba3eb8dda77c8cd
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Fri Jul 26 11:10:21 2024 -0400

    Use compact array declarations
    
    - Use diamonds
---
 .../org/apache/commons/beanutils/bugs/other/Jira61BeanFactory.java    | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/test/java/org/apache/commons/beanutils/bugs/other/Jira61BeanFactory.java b/src/test/java/org/apache/commons/beanutils/bugs/other/Jira61BeanFactory.java
index c033215f..e792b258 100644
--- a/src/test/java/org/apache/commons/beanutils/bugs/other/Jira61BeanFactory.java
+++ b/src/test/java/org/apache/commons/beanutils/bugs/other/Jira61BeanFactory.java
@@ -41,9 +41,9 @@ public class Jira61BeanFactory {
      */
     public static class TestBean {
 
-        private final String[] indexed = new String[] {"one", "two", "three"};
+        private final String[] indexed = {"one", "two", "three"};
         private String simple = "FOO";
-        private final Map<String, Object> mapped = new HashMap<String, Object>();
+        private final Map<String, Object> mapped = new HashMap<>();
 
         /** Default Constructor */
         public TestBean() {