aboutsummaryrefslogtreecommitdiff
path: root/streaming/src
diff options
context:
space:
mode:
authorHolden Karau <holden@us.ibm.com>2016-08-08 15:54:03 -0700
committerMarcelo Vanzin <vanzin@cloudera.com>2016-08-08 15:54:03 -0700
commit9216901d52c9c763bfb908013587dcf5e781f15b (patch)
tree7e6e639340f1aef0048e586aa055b97470cafb42 /streaming/src
parent8650239050ade91689ffa0672ea094de2594e37c (diff)
downloadspark-9216901d52c9c763bfb908013587dcf5e781f15b.tar.gz
spark-9216901d52c9c763bfb908013587dcf5e781f15b.tar.bz2
spark-9216901d52c9c763bfb908013587dcf5e781f15b.zip
[SPARK-16779][TRIVIAL] Avoid using postfix operators where they do not add much and remove whitelisting
## What changes were proposed in this pull request? Avoid using postfix operation for command execution in SQLQuerySuite where it wasn't whitelisted and audit existing whitelistings removing postfix operators from most places. Some notable places where postfix operation remains is in the XML parsing & time units (seconds, millis, etc.) where it arguably can improve readability. ## How was this patch tested? Existing tests. Author: Holden Karau <holden@us.ibm.com> Closes #14407 from holdenk/SPARK-16779.
Diffstat (limited to 'streaming/src')
-rw-r--r--streaming/src/test/scala/org/apache/spark/streaming/InputStreamsSuite.scala1
1 files changed, 0 insertions, 1 deletions
diff --git a/streaming/src/test/scala/org/apache/spark/streaming/InputStreamsSuite.scala b/streaming/src/test/scala/org/apache/spark/streaming/InputStreamsSuite.scala
index 00d506c2f1..9ecfa48091 100644
--- a/streaming/src/test/scala/org/apache/spark/streaming/InputStreamsSuite.scala
+++ b/streaming/src/test/scala/org/apache/spark/streaming/InputStreamsSuite.scala
@@ -25,7 +25,6 @@ import java.util.concurrent.atomic.AtomicInteger
import scala.collection.JavaConverters._
import scala.collection.mutable
-import scala.language.postfixOps
import com.google.common.io.Files
import org.apache.hadoop.fs.Path