From 14552d19e3d2fcf6a1b60f6fc2dc06f8414b8b8c Mon Sep 17 00:00:00 2001 From: Huan-Ping Su Date: Fri, 7 Jun 2019 12:55:17 +0100 Subject: [PATCH] HADOOP-16344. Make DurationInfo public unstable. Second attempt: imports fixed up. Contributed by Huan-Ping Su and Kai Xie. Change-Id: Ib2a85dd4b2d12b840692cc854cc53ddb3bdde7d5 --- .../main/java/org/apache/hadoop/util/DurationInfo.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/util/DurationInfo.java b/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/util/DurationInfo.java index 9dd75db27c7..605d060270f 100644 --- a/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/util/DurationInfo.java +++ b/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/util/DurationInfo.java @@ -20,8 +20,8 @@ package org.apache.hadoop.util; import org.slf4j.Logger; -import org.apache.hadoop.classification.InterfaceAudience; -import org.apache.hadoop.classification.InterfaceStability; +import org.apache.hadoop.classification.InterfaceAudience.Public; +import org.apache.hadoop.classification.InterfaceStability.Unstable; /** * A duration with logging of final state at info or debug @@ -29,8 +29,8 @@ import org.apache.hadoop.classification.InterfaceStability; * This allows it to be used in a try-with-resources clause, and have the * duration automatically logged. */ -@InterfaceAudience.Private -@InterfaceStability.Unstable +@Public +@Unstable public class DurationInfo extends OperationDuration implements AutoCloseable { private final String text;