You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@jmeter.apache.org by fs...@apache.org on 2022/04/18 15:41:52 UTC
[jmeter] 13/16: Suppress warnings about old date API
This is an automated email from the ASF dual-hosted git repository.
fschumacher pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/jmeter.git
commit 522b86aa89399b52ff9b2e89ba4be64a016ca638
Author: Felix Schumacher <fe...@internetallee.de>
AuthorDate: Mon Apr 18 17:22:52 2022 +0200
Suppress warnings about old date API
we have to use it here.
---
src/jorphan/src/test/java/org/apache/jorphan/util/TestConverter.java | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/jorphan/src/test/java/org/apache/jorphan/util/TestConverter.java b/src/jorphan/src/test/java/org/apache/jorphan/util/TestConverter.java
index 2165b50992..adeef4002d 100644
--- a/src/jorphan/src/test/java/org/apache/jorphan/util/TestConverter.java
+++ b/src/jorphan/src/test/java/org/apache/jorphan/util/TestConverter.java
@@ -65,14 +65,14 @@ public class TestConverter {
}
@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));