JDK 20 compliance

(cherry picked from commit 41460bd32a)
This commit is contained in:
Harald Kuhr
2023-05-24 21:43:33 +02:00
parent c5cb54e3e5
commit a78faf2b31
6 changed files with 24 additions and 6 deletions
@@ -593,8 +593,8 @@ public class StringUtilTest {
cal.clear();
cal.set(Calendar.HOUR, 1);
cal.set(Calendar.MINUTE, 2);
date = StringUtil.toDate("1:02 am",
DateFormat.getTimeInstance(DateFormat.SHORT, Locale.US));
format = new SimpleDateFormat("HH:mm");
date = StringUtil.toDate("1:02", format);
assertNotNull(date);
assertEquals(cal.getTime(), date);
}