From 03e8ec7faf56b699e95e099762a388b310c4ce65 Mon Sep 17 00:00:00 2001 From: Mahadev Konar Date: Tue, 29 Nov 2011 23:33:13 +0000 Subject: [PATCH] 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 --- hadoop-mapreduce-project/CHANGES.txt | 3 +++ .../org/apache/hadoop/mapred/TestCombineOutputCollector.java | 4 ++++ 2 files changed, 7 insertions(+) diff --git a/hadoop-mapreduce-project/CHANGES.txt b/hadoop-mapreduce-project/CHANGES.txt index 825ca0a9969..669ac4644a8 100644 --- a/hadoop-mapreduce-project/CHANGES.txt +++ b/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 diff --git a/hadoop-mapreduce-project/src/test/mapred/org/apache/hadoop/mapred/TestCombineOutputCollector.java b/hadoop-mapreduce-project/src/test/mapred/org/apache/hadoop/mapred/TestCombineOutputCollector.java index 0ffac847a4b..83ad0e54c5f 100644 --- a/hadoop-mapreduce-project/src/test/mapred/org/apache/hadoop/mapred/TestCombineOutputCollector.java +++ b/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 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 mockWriter = mock(Writer.class); Configuration conf = new Configuration();