aboutsummaryrefslogtreecommitdiff
path: root/pom.xml
diff options
context:
space:
mode:
authorSean Owen <sowen@cloudera.com>2014-04-14 19:50:00 -0700
committerPatrick Wendell <pwendell@gmail.com>2014-04-14 19:50:00 -0700
commit0247b5c5467ca1b0d03ba929a78fa4d805582d84 (patch)
treef842ea2b95c250fab4f47f5f862479c8225e936a /pom.xml
parent268b53567c93538c03cb66276ed9e05c9f1d3ac6 (diff)
downloadspark-0247b5c5467ca1b0d03ba929a78fa4d805582d84.tar.gz
spark-0247b5c5467ca1b0d03ba929a78fa4d805582d84.tar.bz2
spark-0247b5c5467ca1b0d03ba929a78fa4d805582d84.zip
SPARK-1488. Resolve scalac feature warnings during build
For your consideration: scalac currently notes a number of feature warnings during compilation: ``` [warn] there were 65 feature warning(s); re-run with -feature for details ``` Warnings are like: ``` [warn] /Users/srowen/Documents/spark/core/src/main/scala/org/apache/spark/SparkContext.scala:1261: implicit conversion method rddToPairRDDFunctions should be enabled [warn] by making the implicit value scala.language.implicitConversions visible. [warn] This can be achieved by adding the import clause 'import scala.language.implicitConversions' [warn] or by setting the compiler option -language:implicitConversions. [warn] See the Scala docs for value scala.language.implicitConversions for a discussion [warn] why the feature should be explicitly enabled. [warn] implicit def rddToPairRDDFunctions[K: ClassTag, V: ClassTag](rdd: RDD[(K, V)]) = [warn] ^ ``` scalac is suggesting that it's just best practice to explicitly enable certain language features by importing them where used. This PR simply adds the imports it suggests (and squashes one other Java warning along the way). This leaves just deprecation warnings in the build. Author: Sean Owen <sowen@cloudera.com> Closes #404 from srowen/SPARK-1488 and squashes the following commits: 8598980 [Sean Owen] Quiet scalac warnings about language features by explicitly importing language features. 39bc831 [Sean Owen] Enable -feature in scalac to emit language feature warnings
Diffstat (limited to 'pom.xml')
-rw-r--r--pom.xml1
1 files changed, 1 insertions, 0 deletions
diff --git a/pom.xml b/pom.xml
index 5f66cbe768..0eacedf7a6 100644
--- a/pom.xml
+++ b/pom.xml
@@ -648,6 +648,7 @@
<args>
<arg>-unchecked</arg>
<arg>-deprecation</arg>
+ <arg>-feature</arg>
</args>
<jvmArgs>
<jvmArg>-Xms1024m</jvmArg>