Skip to content

Commit e3d2367

Browse files
author
slfan1989
committed
MAPREDUCE-7384. impove import * In MapReduce Project.
1 parent 53e8b3a commit e3d2367

File tree

12 files changed

+53
-22
lines changed

12 files changed

+53
-22
lines changed

hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-core/src/main/java/org/apache/hadoop/mapreduce/JobACL.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
*/
1818
package org.apache.hadoop.mapreduce;
1919

20-
import org.apache.hadoop.classification.*;
20+
import org.apache.hadoop.classification.InterfaceAudience;
2121

2222
/**
2323
* Job related ACLs

hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-core/src/test/java/org/apache/hadoop/mapred/TestFileOutputCommitter.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,10 @@
2525

2626
import org.junit.Test;
2727
import static org.assertj.core.api.Assertions.assertThat;
28-
import static org.junit.Assert.*;
28+
import static org.junit.Assert.assertTrue;
29+
import static org.junit.Assert.assertFalse;
30+
import static org.junit.Assert.assertEquals;
31+
import static org.junit.Assert.assertNotNull;
2932
import org.junit.Assert;
3033

3134
import org.apache.hadoop.fs.FileStatus;

hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-core/src/test/java/org/apache/hadoop/mapred/TestIndexCache.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,9 @@
3434

3535
import org.junit.Before;
3636
import org.junit.Test;
37-
import static org.junit.Assert.*;
37+
import static org.junit.Assert.fail;
38+
import static org.junit.Assert.assertTrue;
39+
import static org.junit.Assert.assertEquals;
3840

3941
public class TestIndexCache {
4042
private JobConf conf;

hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-core/src/test/java/org/apache/hadoop/mapred/TestJobConf.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,11 @@
2020

2121
import java.util.regex.Pattern;
2222
import static org.assertj.core.api.Assertions.assertThat;
23-
import static org.junit.Assert.*;
23+
import static org.junit.Assert.assertEquals;
24+
import static org.junit.Assert.assertFalse;
25+
import static org.junit.Assert.assertTrue;
26+
import static org.junit.Assert.assertNull;
27+
import static org.junit.Assert.assertNotNull;
2428

2529
import org.apache.hadoop.fs.Path;
2630
import org.apache.hadoop.mapreduce.MRJobConfig;

hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-core/src/test/java/org/apache/hadoop/mapred/TestJobEndNotifier.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,8 @@
3333

3434
import org.junit.After;
3535
import org.junit.Before;
36-
import static org.junit.Assert.*;
36+
import static org.junit.Assert.assertTrue;
37+
import static org.junit.Assert.assertEquals;
3738

3839
import org.apache.hadoop.conf.Configuration;
3940
import org.apache.hadoop.http.HttpServer2;

hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-core/src/test/java/org/apache/hadoop/mapred/TestOldMethodsJobID.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,8 @@
2929
import org.junit.Test;
3030

3131
import static org.assertj.core.api.Assertions.assertThat;
32-
import static org.junit.Assert.*;
32+
import static org.junit.Assert.assertEquals;
33+
import static org.junit.Assert.assertNull;
3334

3435
/**
3536
* Test deprecated methods

hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-core/src/test/java/org/apache/hadoop/mapred/TestQueue.java

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,12 @@
3636
import org.junit.Test;
3737

3838
import static org.assertj.core.api.Assertions.assertThat;
39-
import static org.junit.Assert.*;
40-
import static org.mockito.Mockito.*;
39+
import static org.junit.Assert.assertEquals;
40+
import static org.junit.Assert.assertTrue;
41+
import static org.junit.Assert.assertFalse;
42+
import static org.junit.Assert.assertNull;
43+
import static org.mockito.Mockito.mock;
44+
import static org.mockito.Mockito.when;
4145

4246
/**
4347
* TestCounters checks the sanity and recoverability of Queue

hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-core/src/test/java/org/apache/hadoop/mapred/TestSkipBadRecords.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,10 @@
2020
import org.apache.hadoop.conf.Configuration;
2121
import org.apache.hadoop.fs.Path;
2222
import org.junit.Test;
23-
import static org.junit.Assert.*;
23+
import static org.junit.Assert.assertEquals;
24+
import static org.junit.Assert.assertTrue;
25+
import static org.junit.Assert.assertFalse;
26+
import static org.junit.Assert.assertNull;
2427

2528
/**
2629
* test SkipBadRecords

hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-core/src/test/java/org/apache/hadoop/mapreduce/TestJob.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,9 @@
1818

1919
package org.apache.hadoop.mapreduce;
2020

21-
import static org.junit.Assert.*;
22-
import static org.mockito.Mockito.*;
21+
import static org.junit.Assert.assertSame;
22+
import static org.mockito.Mockito.mock;
23+
import static org.mockito.Mockito.when;
2324

2425
import java.io.IOException;
2526

hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-core/src/test/java/org/apache/hadoop/mapreduce/TestJobMonitorAndPrint.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535

3636
import org.junit.Before;
3737
import org.junit.Test;
38-
import static org.junit.Assert.*;
38+
import static org.junit.Assert.assertTrue;
3939

4040
import org.apache.hadoop.conf.Configuration;
4141
import org.apache.hadoop.mapred.TaskReport;

0 commit comments

Comments
 (0)