From 20f935eaead5471a334d7d9578995808386dde7f Mon Sep 17 00:00:00 2001 From: Eli Collins Date: Fri, 18 May 2012 21:43:02 +0000 Subject: [PATCH] HADOOP-8329. Build fails with Java 7. Contributed by Eli Collins git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/trunk@1340268 13f79535-47bb-0310-9956-ffa450edef68 --- hadoop-common-project/hadoop-common/CHANGES.txt | 2 ++ .../main/java/org/apache/hadoop/mapred/gridmix/Gridmix.java | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/hadoop-common-project/hadoop-common/CHANGES.txt b/hadoop-common-project/hadoop-common/CHANGES.txt index 5cdbadce9a..2dba4f4abb 100644 --- a/hadoop-common-project/hadoop-common/CHANGES.txt +++ b/hadoop-common-project/hadoop-common/CHANGES.txt @@ -186,6 +186,8 @@ Release 2.0.1-alpha - UNRELEASED HADOOP-8408. MR doesn't work with a non-default ViewFS mount table and security enabled. (atm via eli) + HADOOP-8329. Build fails with Java 7. (eli) + Release 2.0.0-alpha - UNRELEASED INCOMPATIBLE CHANGES diff --git a/hadoop-tools/hadoop-gridmix/src/main/java/org/apache/hadoop/mapred/gridmix/Gridmix.java b/hadoop-tools/hadoop-gridmix/src/main/java/org/apache/hadoop/mapred/gridmix/Gridmix.java index eea90cf1cc..4bdc001c55 100644 --- a/hadoop-tools/hadoop-gridmix/src/main/java/org/apache/hadoop/mapred/gridmix/Gridmix.java +++ b/hadoop-tools/hadoop-gridmix/src/main/java/org/apache/hadoop/mapred/gridmix/Gridmix.java @@ -697,10 +697,10 @@ public static void main(String[] argv) throws Exception { } } - private String getEnumValues(Enum[] e) { + private String getEnumValues(Enum[] e) { StringBuilder sb = new StringBuilder(); String sep = ""; - for (Enum v : e) { + for (Enum v : e) { sb.append(sep); sb.append(v.name()); sep = "|";