Browse Source

HADOOP-5065. Remove generic parameters from argument to
setIn/OutputFormatClass so that it works with SequenceIn/OutputFormat.
(cdouglas via omalley)


git-svn-id: https://svn.apache.org/repos/asf/hadoop/core/branches/branch-0.20@734917 13f79535-47bb-0310-9956-ffa450edef68

Owen O'Malley 16 years ago
parent
commit
72baffdcf7
2 changed files with 6 additions and 2 deletions
  1. 4 0
      CHANGES.txt
  2. 2 2
      src/mapred/org/apache/hadoop/mapreduce/Job.java

+ 4 - 0
CHANGES.txt

@@ -542,6 +542,10 @@ Release 0.20.0 - Unreleased
     HADOOP-4988. Fix reclaim capacity to work even when there are queues with
     no capacity. (Vivek Ratan via yhemanth)
 
+    HADOOP-5065. Remove generic parameters from argument to 
+    setIn/OutputFormatClass so that it works with SequenceIn/OutputFormat.
+    (cdouglas via omalley)
+
 Release 0.19.1 - Unreleased
 
   IMPROVEMENTS

+ 2 - 2
src/mapred/org/apache/hadoop/mapreduce/Job.java

@@ -88,7 +88,7 @@ public class Job extends JobContext {
    * @param cls the <code>InputFormat</code> to use
    * @throws IllegalStateException if the job is submitted
    */
-  public void setInputFormatClass(Class<? extends InputFormat<?,?>> cls
+  public void setInputFormatClass(Class<? extends InputFormat> cls
                                   ) throws IllegalStateException {
     ensureState(JobState.DEFINE);
     conf.setClass(INPUT_FORMAT_CLASS_ATTR, cls, InputFormat.class);
@@ -99,7 +99,7 @@ public class Job extends JobContext {
    * @param cls the <code>OutputFormat</code> to use
    * @throws IllegalStateException if the job is submitted
    */
-  public void setOutputFormatClass(Class<? extends OutputFormat<?,?>> cls
+  public void setOutputFormatClass(Class<? extends OutputFormat> cls
                                    ) throws IllegalStateException {
     ensureState(JobState.DEFINE);
     conf.setClass(OUTPUT_FORMAT_CLASS_ATTR, cls, OutputFormat.class);