From 5740bb634514a9ddea5597e5ec193e43d71b7e8d Mon Sep 17 00:00:00 2001 From: Howard Yoo <32691630+howardyoo@users.noreply.github.com> Date: Tue, 27 Aug 2019 08:40:06 -0700 Subject: [PATCH] Update TestWavefrontMetrics.java --- .../org/apache/hadoop/metrics2/impl/TestWavefrontMetrics.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/metrics2/impl/TestWavefrontMetrics.java b/hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/metrics2/impl/TestWavefrontMetrics.java index 29cd51a06e3..1ef4639568b 100644 --- a/hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/metrics2/impl/TestWavefrontMetrics.java +++ b/hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/metrics2/impl/TestWavefrontMetrics.java @@ -60,6 +60,7 @@ public class TestWavefrontMetrics { return mockWavefront; } + @SuppressWarnings( "deprecation" ) @Test public void testPutMetrics() { WavefrontSink sink = new WavefrontSink(); @@ -101,6 +102,7 @@ public class TestWavefrontMetrics { /** * Assert that timestamps are converted correctly. */ + @SuppressWarnings( "deprecation" ) @Test public void testPutMetrics2() { @@ -139,6 +141,7 @@ public class TestWavefrontMetrics { } } + @SuppressWarnings( "deprecation" ) @Test public void testFailureAndPutMetrics() throws IOException { WavefrontSink sink = new WavefrontSink(); @@ -185,6 +188,7 @@ public class TestWavefrontMetrics { "Hostname=\"host\"\n")); } + @SuppressWarnings( "deprecation" ) @Test public void testClose() { WavefrontSink sink = new WavefrontSink();