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

This commit is contained in:
Akira Ajisaka 2016-07-07 11:18:43 -07:00
parent 0e0f45f0ec
commit d1626a7b37

View File

@ -22,7 +22,6 @@
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;
@ -322,26 +321,6 @@ public static String formatTimeSortable(long timeDiff) {
return buf.toString();
}
/**
* @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().