diff options
author | Sean Owen <sowen@cloudera.com> | 2014-12-24 13:32:51 -0800 |
---|---|---|
committer | Josh Rosen <joshrosen@databricks.com> | 2014-12-24 13:32:51 -0800 |
commit | 29fabb1b528e60b2f65132a9ab64f2fd95b729ba (patch) | |
tree | 00028a1f4ea48e77ede7e8f9bdfaa0cb324b74e7 /mllib/src | |
parent | 199e59aacd540e17b31f38e0e32a3618870e9055 (diff) | |
download | spark-29fabb1b528e60b2f65132a9ab64f2fd95b729ba.tar.gz spark-29fabb1b528e60b2f65132a9ab64f2fd95b729ba.tar.bz2 spark-29fabb1b528e60b2f65132a9ab64f2fd95b729ba.zip |
SPARK-4297 [BUILD] Build warning fixes omnibus
There are a number of warnings generated in a normal, successful build right now. They're mostly Java unchecked cast warnings, which can be suppressed. But there's a grab bag of other Scala language warnings and so on that can all be easily fixed. The forthcoming PR fixes about 90% of the build warnings I see now.
Author: Sean Owen <sowen@cloudera.com>
Closes #3157 from srowen/SPARK-4297 and squashes the following commits:
8c9e469 [Sean Owen] Suppress unchecked cast warnings, and several other build warning fixes
Diffstat (limited to 'mllib/src')
-rw-r--r-- | mllib/src/test/java/org/apache/spark/mllib/feature/JavaTfIdfSuite.java | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/mllib/src/test/java/org/apache/spark/mllib/feature/JavaTfIdfSuite.java b/mllib/src/test/java/org/apache/spark/mllib/feature/JavaTfIdfSuite.java index 064263e02c..fbc26167ce 100644 --- a/mllib/src/test/java/org/apache/spark/mllib/feature/JavaTfIdfSuite.java +++ b/mllib/src/test/java/org/apache/spark/mllib/feature/JavaTfIdfSuite.java @@ -49,6 +49,7 @@ public class JavaTfIdfSuite implements Serializable { public void tfIdf() { // The tests are to check Java compatibility. HashingTF tf = new HashingTF(); + @SuppressWarnings("unchecked") JavaRDD<ArrayList<String>> documents = sc.parallelize(Lists.newArrayList( Lists.newArrayList("this is a sentence".split(" ")), Lists.newArrayList("this is another sentence".split(" ")), @@ -68,6 +69,7 @@ public class JavaTfIdfSuite implements Serializable { public void tfIdfMinimumDocumentFrequency() { // The tests are to check Java compatibility. HashingTF tf = new HashingTF(); + @SuppressWarnings("unchecked") JavaRDD<ArrayList<String>> documents = sc.parallelize(Lists.newArrayList( Lists.newArrayList("this is a sentence".split(" ")), Lists.newArrayList("this is another sentence".split(" ")), |