aboutsummaryrefslogtreecommitdiff
path: root/core/src/main/scala
diff options
context:
space:
mode:
authorWilliam Benton <willb@redhat.com>2014-07-15 09:13:39 -0700
committerAaron Davidson <aaron@databricks.com>2014-07-15 09:13:39 -0700
commitcb09e93c1d7ef9c8f0a1abe4e659783c74993a4e (patch)
tree885f506cae11ef4027026b118513de306c0aeef5 /core/src/main/scala
parent04b01bb101eeaf76c2e7c94c291669f0b2372c9a (diff)
downloadspark-cb09e93c1d7ef9c8f0a1abe4e659783c74993a4e.tar.gz
spark-cb09e93c1d7ef9c8f0a1abe4e659783c74993a4e.tar.bz2
spark-cb09e93c1d7ef9c8f0a1abe4e659783c74993a4e.zip
Reformat multi-line closure argument.
Author: William Benton <willb@redhat.com> Closes #1419 from willb/reformat-2486 and squashes the following commits: 2676231 [William Benton] Reformat multi-line closure argument.
Diffstat (limited to 'core/src/main/scala')
-rw-r--r--core/src/main/scala/org/apache/spark/util/Utils.scala5
1 files changed, 3 insertions, 2 deletions
diff --git a/core/src/main/scala/org/apache/spark/util/Utils.scala b/core/src/main/scala/org/apache/spark/util/Utils.scala
index d72c97bbe8..10c33d67e7 100644
--- a/core/src/main/scala/org/apache/spark/util/Utils.scala
+++ b/core/src/main/scala/org/apache/spark/util/Utils.scala
@@ -809,11 +809,12 @@ private[spark] object Utils extends Logging {
*/
def getCallSite: CallSite = {
val trace = Thread.currentThread.getStackTrace()
- .filterNot((ste:StackTraceElement) =>
+ .filterNot { ste:StackTraceElement =>
// When running under some profilers, the current stack trace might contain some bogus
// frames. This is intended to ensure that we don't crash in these situations by
// ignoring any frames that we can't examine.
- (ste == null || ste.getMethodName == null || ste.getMethodName.contains("getStackTrace")))
+ (ste == null || ste.getMethodName == null || ste.getMethodName.contains("getStackTrace"))
+ }
// Keep crawling up the stack trace until we find the first function not inside of the spark
// package. We track the last (shallowest) contiguous Spark method. This might be an RDD