diff options
author | GuoQiang Li <witgo@qq.com> | 2015-03-06 13:20:20 +0000 |
---|---|---|
committer | Sean Owen <sowen@cloudera.com> | 2015-03-06 13:20:20 +0000 |
commit | 05cb6b34d8fc25114f3dd3e2bd156386c00eb391 (patch) | |
tree | 296c844e5bb57af864aa08d2f992803883f51cdc /streaming/src | |
parent | cd7594ca6acf1226bf91f8a783606bf5c116f7df (diff) | |
download | spark-05cb6b34d8fc25114f3dd3e2bd156386c00eb391.tar.gz spark-05cb6b34d8fc25114f3dd3e2bd156386c00eb391.tar.bz2 spark-05cb6b34d8fc25114f3dd3e2bd156386c00eb391.zip |
[Minor] Resolve sbt warnings: postfix operator second should be enabled
Resolve sbt warnings:
```
[warn] spark/streaming/src/main/scala/org/apache/spark/streaming/util/WriteAheadLogManager.scala:155: postfix operator second should be enabled
[warn] by making the implicit value scala.language.postfixOps visible.
[warn] This can be achieved by adding the import clause 'import scala.language.postfixOps'
[warn] or by setting the compiler option -language:postfixOps.
[warn] See the Scala docs for value scala.language.postfixOps for a discussion
[warn] why the feature should be explicitly enabled.
[warn] Await.ready(f, 1 second)
[warn] ^
```
Author: GuoQiang Li <witgo@qq.com>
Closes #4908 from witgo/sbt_warnings and squashes the following commits:
0629af4 [GuoQiang Li] Resolve sbt warnings: postfix operator second should be enabled
Diffstat (limited to 'streaming/src')
-rw-r--r-- | streaming/src/main/scala/org/apache/spark/streaming/util/WriteAheadLogManager.scala | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/streaming/src/main/scala/org/apache/spark/streaming/util/WriteAheadLogManager.scala b/streaming/src/main/scala/org/apache/spark/streaming/util/WriteAheadLogManager.scala index 985ded9111..6bdfe45dc7 100644 --- a/streaming/src/main/scala/org/apache/spark/streaming/util/WriteAheadLogManager.scala +++ b/streaming/src/main/scala/org/apache/spark/streaming/util/WriteAheadLogManager.scala @@ -20,6 +20,7 @@ import java.nio.ByteBuffer import scala.collection.mutable.ArrayBuffer import scala.concurrent.{Await, ExecutionContext, Future} +import scala.language.postfixOps import org.apache.hadoop.conf.Configuration import org.apache.hadoop.fs.Path |