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:15 UTC
(commons-beanutils) 02/02: Use an import instead of a FQCN
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");
}