Skip to content

Commit c8a54db

Browse files
committed
remove java compiler warnings from java tests
1 parent 999a068 commit c8a54db

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

core/src/test/java/org/apache/spark/JavaAPISuite.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@
6363
// The test suite itself is Serializable so that anonymous Function implementations can be
6464
// serialized, as an alternative to converting these anonymous classes to static inner classes;
6565
// see http://stackoverflow.com/questions/758570/.
66+
@SuppressWarnings("serial")
6667
public class JavaAPISuite implements Serializable {
6768
private transient JavaSparkContext sc;
6869
private transient File tempDir;

core/src/test/java/org/apache/spark/JavaJdbcRDDSuite.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@
3434
import org.junit.Before;
3535
import org.junit.Test;
3636

37+
@SuppressWarnings("serial")
3738
public class JavaJdbcRDDSuite implements Serializable {
3839
private transient JavaSparkContext sc;
3940

0 commit comments

Comments
 (0)