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 2025/05/19 12:15:13 UTC

(commons-beanutils) branch master updated (29b97e8a -> 1960135e)

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

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


    from 29b97e8a Bump github/codeql-action from 3.28.17 to 3.28.18 (#350)
     new dd00c5a4 Use an existing import instead of a FQCN
     new 1960135e Use an import instead of a FQCN

The 2 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 .../java/org/apache/commons/beanutils2/DefaultBeanIntrospector.java    | 2 +-
 .../apache/commons/beanutils2/converters/DateLocaleConverterTest.java  | 3 ++-
 2 files changed, 3 insertions(+), 2 deletions(-)


(commons-beanutils) 02/02: Use an import instead of a FQCN

Posted by gg...@apache.org.
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-beanutils.git

commit 1960135e74fab9c0817905a8fd70fb5a0b4b8efd
Author: Gary D. Gregory <ga...@gmail.com>
AuthorDate: Mon May 19 08:15:08 2025 -0400

    Use an import instead of a FQCN
---
 .../apache/commons/beanutils2/converters/DateLocaleConverterTest.java  | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/test/java/org/apache/commons/beanutils2/converters/DateLocaleConverterTest.java b/src/test/java/org/apache/commons/beanutils2/converters/DateLocaleConverterTest.java
index fe436321..d8e1ac8e 100644
--- a/src/test/java/org/apache/commons/beanutils2/converters/DateLocaleConverterTest.java
+++ b/src/test/java/org/apache/commons/beanutils2/converters/DateLocaleConverterTest.java
@@ -23,6 +23,7 @@ import static org.junit.jupiter.api.Assertions.fail;
 import java.text.DateFormatSymbols;
 import java.text.ParseException;
 import java.text.SimpleDateFormat;
+import java.util.Calendar;
 import java.util.Date;
 import java.util.Locale;
 
@@ -105,7 +106,7 @@ class DateLocaleConverterTest extends AbstractLocaleConverterTest<Date> {
     @Test
     public void testCalendarObject() {
         converter = DateLocaleConverter.builder().setLocale(defaultLocale).get();
-        final java.util.Calendar calendar = java.util.Calendar.getInstance();
+        final Calendar calendar = Calendar.getInstance();
         calendar.setTime((java.util.Date) expectedValue);
         assertEquals(expectedValue, converter.convert(calendar), "java.util.Calendar");
     }


(commons-beanutils) 01/02: Use an existing import instead of a FQCN

Posted by gg...@apache.org.
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-beanutils.git

commit dd00c5a442bfac5227dc8d4a6b4e2f37cfe9540a
Author: Gary D. Gregory <ga...@gmail.com>
AuthorDate: Mon May 19 08:14:21 2025 -0400

    Use an existing import instead of a FQCN
---
 .../java/org/apache/commons/beanutils2/DefaultBeanIntrospector.java     | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/main/java/org/apache/commons/beanutils2/DefaultBeanIntrospector.java b/src/main/java/org/apache/commons/beanutils2/DefaultBeanIntrospector.java
index bfbebfc2..2c154799 100644
--- a/src/main/java/org/apache/commons/beanutils2/DefaultBeanIntrospector.java
+++ b/src/main/java/org/apache/commons/beanutils2/DefaultBeanIntrospector.java
@@ -48,7 +48,7 @@ public class DefaultBeanIntrospector implements BeanIntrospector {
     public static final BeanIntrospector INSTANCE = new DefaultBeanIntrospector();
 
     /** Constant for arguments types of a method that expects a list argument. */
-    private static final Class<?>[] LIST_CLASS_PARAMETER = new Class[] { java.util.List.class };
+    private static final Class<?>[] LIST_CLASS_PARAMETER = new Class[] { List.class };
 
     /** For logging. Each subclass gets its own log instance. */
     private final Log log = LogFactory.getLog(getClass());