Browse Source

HADOOP-2571. Suppress a suprious warning in test code.


git-svn-id: https://svn.apache.org/repos/asf/lucene/hadoop/trunk@610648 13f79535-47bb-0310-9956-ffa450edef68
Christopher Douglas 17 years ago
parent
commit
cd1a5e0011
2 changed files with 3 additions and 0 deletions
  1. 2 0
      CHANGES.txt
  2. 1 0
      src/test/org/apache/hadoop/io/FileBench.java

+ 2 - 0
CHANGES.txt

@@ -390,6 +390,8 @@ Trunk (unreleased changes)
     HADOOP-1281. Ensure running tasks of completed map TIPs (e.g. speculative
     tasks) are killed as soon as the TIP completed. (acmurthy)
 
+    HADOOP-2571. Suppress a suprious warning in test code. (cdouglas)
+
 Release 0.15.2 - 2008-01-02
 
   BUG FIXES

+ 1 - 0
src/test/org/apache/hadoop/io/FileBench.java

@@ -332,6 +332,7 @@ public class FileBench extends Configured implements Tool {
     return set;
   }
 
+  @SuppressWarnings("unchecked")
   public static <T extends Enum<T>> EnumSet<T> add(Class<T> c,
       EnumSet<T> set, String s) {
     if (null != fullmap.get(c) && fullmap.get(c).get(s) != null) {