From 3e2ca23a53b1436b6b71a800b608588387048f6c Mon Sep 17 00:00:00 2001 From: Akira Ajisaka Date: Wed, 10 May 2017 05:57:12 -0500 Subject: [PATCH] HADOOP-14400. Fix warnings from spotbugs in hadoop-tools. Contributed by Weiwei Yang. --- .../main/java/org/apache/hadoop/yarn/sls/SLSRunner.java | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/hadoop-tools/hadoop-sls/src/main/java/org/apache/hadoop/yarn/sls/SLSRunner.java b/hadoop-tools/hadoop-sls/src/main/java/org/apache/hadoop/yarn/sls/SLSRunner.java index e85973258a..f4e0b3df5e 100644 --- a/hadoop-tools/hadoop-sls/src/main/java/org/apache/hadoop/yarn/sls/SLSRunner.java +++ b/hadoop-tools/hadoop-sls/src/main/java/org/apache/hadoop/yarn/sls/SLSRunner.java @@ -216,6 +216,13 @@ public static Map getSimulateInfoMap() { return Collections.unmodifiableMap(simulateInfoMap); } + /** + * @return an unmodifiable view of the simulated info map. + */ + public static Map getSimulateInfoMap() { + return Collections.unmodifiableMap(simulateInfoMap); + } + public void setSimulationParams(TraceType inType, String[] inTraces, String nodes, String outDir, Set trackApps, boolean printsimulation) throws IOException, ClassNotFoundException {