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:49 UTC
(commons-beanutils) 01/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 8815d0d2c58d53d906db79365bd55157a7cd39fd
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Fri Jul 26 11:09:40 2024 -0400
Use compact array declarations
- Use diamonds
---
.../org/apache/commons/beanutils/bugs/other/Jira18BeanFactory.java | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/test/java/org/apache/commons/beanutils/bugs/other/Jira18BeanFactory.java b/src/test/java/org/apache/commons/beanutils/bugs/other/Jira18BeanFactory.java
index 4d7d0c99..7aacb4ba 100644
--- a/src/test/java/org/apache/commons/beanutils/bugs/other/Jira18BeanFactory.java
+++ b/src/test/java/org/apache/commons/beanutils/bugs/other/Jira18BeanFactory.java
@@ -40,9 +40,9 @@ public class Jira18BeanFactory {
/* =============== Package Friendly Bean =============== */
static class PackageFriendlyBean {
- 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 PackageFriendlyBean() {