Uploaded image for project: 'Hadoop Common'
  1. Hadoop Common
  2. HADOOP-3031

Remove compiler warnings for ant test

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 0.17.0
    • 0.17.0
    • None
    • None
    • Reviewed

    Description

      The following warnings need to be removed from ant tests
      src/test/org/apache/hadoop/mapred/EmptyInputFormat.java:35: warning: [unchecked] unchecked conversion
      [javac] found : org.apache.hadoop.mapred.SequenceFileRecordReader
      [javac] required: org.apache.hadoop.mapred.RecordReader<K,V>
      [javac] return new SequenceFileRecordReader(job, (FileSplit) split);
      src/test/org/apache/hadoop/mapred/TestReduceTask.java:91: warning: [unchecked] unchecked call to ValuesIterator(org.apache.hadoop.io.SequenceFile.Sorter.RawKeyValueIterator,org.apache.hadoop.io.RawComparator<KEY>,java.lang.Class<KEY>,java.lang.Class<VALUE>,org.apache.hadoop.conf.Configuration,org.apache.hadoop.util.Progressable) as a member of the raw type org.apache.hadoop.mapred.ReduceTask.ValuesIterator
      [javac] new ReduceTask.ValuesIterator(rawItr, WritableComparator.get(Text.class),

      Attachments

        1. 3031-1.patch
          3 kB
          Christopher Douglas
        2. patch-3031-warning1.txt
          1 kB
          Amareshwari Sriramadasu

        Activity

          People

            cdouglas Christopher Douglas
            amareshwari Amareshwari Sriramadasu
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: