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/12 18:31:51 UTC
[jmeter] branch master updated: Use a finer filter to disable warnings about java.util.Date
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
The following commit(s) were added to refs/heads/master by this push:
new d9f775e8f8 Use a finer filter to disable warnings about java.util.Date
d9f775e8f8 is described below
commit d9f775e8f82a2584ad4360d092589ed9d31d5fa6
Author: Felix Schumacher <fe...@internetallee.de>
AuthorDate: Tue Apr 12 20:31:33 2022 +0200
Use a finer filter to disable warnings about java.util.Date
and keep them locally
Part of #708
---
src/jorphan/src/main/java/org/apache/jorphan/util/HeapDumper.java | 2 +-
src/jorphan/src/main/java/org/apache/jorphan/util/ThreadDumper.java | 2 +-
src/launcher/src/main/java/org/apache/jmeter/NewDriver.java | 2 +-
3 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/jorphan/src/main/java/org/apache/jorphan/util/HeapDumper.java b/src/jorphan/src/main/java/org/apache/jorphan/util/HeapDumper.java
index 3f71f346dd..fffaf7c9b5 100644
--- a/src/jorphan/src/main/java/org/apache/jorphan/util/HeapDumper.java
+++ b/src/jorphan/src/main/java/org/apache/jorphan/util/HeapDumper.java
@@ -159,7 +159,7 @@ public class HeapDumper {
* @return the name of the dump file that was created
* @throws Exception if the MXBean cannot be found, or if there is a problem during invocation
*/
- @SuppressWarnings("JdkObsolete")
+ @SuppressWarnings("JavaUtilDate")
public static String dumpHeap(File basedir, boolean live) throws Exception {
SimpleDateFormat timestampFormat = new SimpleDateFormat("yyyyMMdd_hhmmss_SSS");
String stamp = timestampFormat.format(new Date());
diff --git a/src/jorphan/src/main/java/org/apache/jorphan/util/ThreadDumper.java b/src/jorphan/src/main/java/org/apache/jorphan/util/ThreadDumper.java
index 2c6762ee78..3f572a22e3 100644
--- a/src/jorphan/src/main/java/org/apache/jorphan/util/ThreadDumper.java
+++ b/src/jorphan/src/main/java/org/apache/jorphan/util/ThreadDumper.java
@@ -56,7 +56,7 @@ public class ThreadDumper {
* @return Name of file containing thread dump
* @throws Exception if file cannot we written
*/
- @SuppressWarnings("JdkObsolete")
+ @SuppressWarnings("JavaUtilDate")
public static String threadDump(File basedir) throws Exception {
SimpleDateFormat timestampFormat = new SimpleDateFormat("yyyyMMdd_hhmmss_SSS");
String stamp = timestampFormat.format(new Date());
diff --git a/src/launcher/src/main/java/org/apache/jmeter/NewDriver.java b/src/launcher/src/main/java/org/apache/jmeter/NewDriver.java
index 99aff035a4..91d609c5f7 100644
--- a/src/launcher/src/main/java/org/apache/jmeter/NewDriver.java
+++ b/src/launcher/src/main/java/org/apache/jmeter/NewDriver.java
@@ -344,7 +344,7 @@ public final class NewDriver {
/*
* If the fileName contains at least one set of paired single-quotes, reformat using DateFormat
*/
- @SuppressWarnings("JdkObsolete")
+ @SuppressWarnings("JavaUtilDate")
private static String replaceDateFormatInFileName(String fileName) {
try {
StringBuilder builder = new StringBuilder();