Bladeren bron

MAPREDUCE-3448. TestCombineOutputCollector javac unchecked warning on mocked generics (Jonathan Eagles via mahadev)

git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/trunk@1208136 13f79535-47bb-0310-9956-ffa450edef68
Mahadev Konar 13 jaren geleden
bovenliggende
commit
03e8ec7faf

+ 3 - 0
hadoop-mapreduce-project/CHANGES.txt

@@ -124,6 +124,9 @@ Release 0.23.1 - Unreleased
     MAPREDUCE-3045. Fixed UI filters to not filter on hidden title-numeric
     sort fields. (Jonathan Eagles via sseth)
 
+    MAPREDUCE-3448. TestCombineOutputCollector javac unchecked warning on mocked
+    generics (Jonathan Eagles via mahadev)
+
   OPTIMIZATIONS
 
   BUG FIXES

+ 4 - 0
hadoop-mapreduce-project/src/test/mapred/org/apache/hadoop/mapred/TestCombineOutputCollector.java

@@ -102,6 +102,8 @@ public class TestCombineOutputCollector {
   public void testCustomCollect() throws Throwable {
     //mock creation
     TaskReporter mockTaskReporter = mock(TaskReporter.class);
+
+    @SuppressWarnings("unchecked")
     Writer<String, Integer> mockWriter = mock(Writer.class);
 
     Configuration conf = new Configuration();
@@ -122,6 +124,8 @@ public class TestCombineOutputCollector {
   public void testDefaultCollect() throws Throwable {
     //mock creation
     TaskReporter mockTaskReporter = mock(TaskReporter.class);
+
+    @SuppressWarnings("unchecked")
     Writer<String, Integer> mockWriter = mock(Writer.class);
 
     Configuration conf = new Configuration();