hadoop-common-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aajis...@apache.org
Subject hadoop git commit: MAPREDUCE-6717. Remove deprecated StringUtils.getFormattedTimeWithDiff. Contributed by Shen Yinjie.
Date Thu, 07 Jul 2016 18:20:06 GMT
Repository: hadoop
Updated Branches:
  refs/heads/trunk 0e0f45f0e -> d1626a7b3


MAPREDUCE-6717. Remove deprecated StringUtils.getFormattedTimeWithDiff. Contributed by Shen
Yinjie.


Project: http://git-wip-us.apache.org/repos/asf/hadoop/repo
Commit: http://git-wip-us.apache.org/repos/asf/hadoop/commit/d1626a7b
Tree: http://git-wip-us.apache.org/repos/asf/hadoop/tree/d1626a7b
Diff: http://git-wip-us.apache.org/repos/asf/hadoop/diff/d1626a7b

Branch: refs/heads/trunk
Commit: d1626a7b37472f8b76bfbd5ee484cefa7cba7d3d
Parents: 0e0f45f
Author: Akira Ajisaka <aajisaka@apache.org>
Authored: Thu Jul 7 11:18:43 2016 -0700
Committer: Akira Ajisaka <aajisaka@apache.org>
Committed: Thu Jul 7 11:18:43 2016 -0700

----------------------------------------------------------------------
 .../org/apache/hadoop/util/StringUtils.java     | 21 --------------------
 1 file changed, 21 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hadoop/blob/d1626a7b/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/util/StringUtils.java
----------------------------------------------------------------------
diff --git a/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/util/StringUtils.java
b/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/util/StringUtils.java
index e8d76a3..11a93de 100644
--- a/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/util/StringUtils.java
+++ b/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/util/StringUtils.java
@@ -22,7 +22,6 @@ import java.io.PrintWriter;
 import java.io.StringWriter;
 import java.net.URI;
 import java.net.URISyntaxException;
-import java.text.DateFormat;
 import java.util.ArrayList;
 import java.util.Arrays;
 import java.util.Collection;
@@ -323,26 +322,6 @@ public class StringUtils {
   }
 
   /**
-   * @param dateFormat date format to use
-   * @param finishTime finish time
-   * @param startTime  start time
-   * @return formatted value.
-   * Formats time in ms and appends difference (finishTime - startTime)
-   * as returned by formatTimeDiff().
-   * If finish time is 0, empty string is returned, if start time is 0
-   * then difference is not appended to return value.
-   * @deprecated Use
-   * {@link StringUtils#getFormattedTimeWithDiff(FastDateFormat, long, long)} or
-   * {@link StringUtils#getFormattedTimeWithDiff(String, long, long)} instead.
-   */
-  @Deprecated
-  public static String getFormattedTimeWithDiff(DateFormat dateFormat,
-      long finishTime, long startTime){
-    String formattedFinishTime = dateFormat.format(finishTime);
-    return getFormattedTimeWithDiff(formattedFinishTime, finishTime, startTime);
-  }
-
-  /**
    * Formats time in ms and appends difference (finishTime - startTime)
    * as returned by formatTimeDiff().
    * If finish time is 0, empty string is returned, if start time is 0


---------------------------------------------------------------------
To unsubscribe, e-mail: common-commits-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-commits-help@hadoop.apache.org


Mime
View raw message