From eba66a64d28b50a660d6f537c767677f5fa0f7ea Mon Sep 17 00:00:00 2001 From: Siddharth Seth Date: Mon, 14 Mar 2016 20:14:33 -0700 Subject: [PATCH] YARN-4816. Fix incompatible change in SystemClock. --- .../main/java/org/apache/hadoop/yarn/util/SystemClock.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-common/src/main/java/org/apache/hadoop/yarn/util/SystemClock.java b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-common/src/main/java/org/apache/hadoop/yarn/util/SystemClock.java index c60368f1fde..72e42d1d5cd 100644 --- a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-common/src/main/java/org/apache/hadoop/yarn/util/SystemClock.java +++ b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-common/src/main/java/org/apache/hadoop/yarn/util/SystemClock.java @@ -38,11 +38,12 @@ public final class SystemClock implements Clock { return INSTANCE; } - private SystemClock() { + @Deprecated + public SystemClock() { // do nothing } public long getTime() { return System.currentTimeMillis(); } -} \ No newline at end of file +}