Skip to content
Permalink
Browse files
Suppress warnings about old date API
we have to use it here.
  • Loading branch information
FSchumacher committed Apr 18, 2022
1 parent 16340ba commit 522b86aa89399b52ff9b2e89ba4be64a016ca638
Showing 1 changed file with 2 additions and 2 deletions.
@@ -65,14 +65,14 @@ public void testGetCalendarObjectCalendarWithInvalidStringAndNullDefault() {
}

@Test
@SuppressWarnings({ "UndefinedEquals", "JdkObsolete" })
@SuppressWarnings({ "UndefinedEquals", "JavaUtilDate" })
public void testGetDateObjectDateWithTimeAndNullDefault() {
Date time = new Date();
assertEquals(time, Converter.getDate(time, null));
}

@Test
@SuppressWarnings({ "UndefinedEquals", "JdkObsolete" })
@SuppressWarnings({ "UndefinedEquals", "JavaUtilDate" })
public void testGetDateObjectDateWithNullAndDateAsDefault() {
Date date = new Date();
assertEquals(date, Converter.getDate(null, date));

0 comments on commit 522b86a

Please sign in to comment.