Skip to content

Commit

Permalink
Changing default regex function name
Browse files Browse the repository at this point in the history
  • Loading branch information
mubarak committed Sep 5, 2014
1 parent 8c5d443 commit ceb43da
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/src/main/scala/org/apache/spark/util/Utils.scala
Original file line number Diff line number Diff line change
Expand Up @@ -863,7 +863,7 @@ private[spark] object Utils extends Logging {
private val SPARK_STREAMING_CLASS_REGEX = """^org\.apache\.spark""".r
private val SPARK_EXAMPLES_CLASS_REGEX = """^org\.apache\.spark\.examples""".r

private def defaultRegex(className: String): Boolean = {
private def defaultRegexFunc(className: String): Boolean = {
SPARK_CLASS_REGEX.findFirstIn(className).isDefined ||
SCALA_CLASS_REGEX.findFirstIn(className).isDefined
}
Expand All @@ -879,7 +879,7 @@ private[spark] object Utils extends Logging {
* (outside the spark package) that called into Spark, as well as which Spark method they called.
* This is used, for example, to tell users where in their code each RDD got created.
*/
def getCallSite(regexFunc: String => Boolean = defaultRegex(_)): CallSite = {
def getCallSite(regexFunc: String => Boolean = defaultRegexFunc(_)): CallSite = {
val trace = Thread.currentThread.getStackTrace()
.filterNot { ste:StackTraceElement =>
// When running under some profilers, the current stack trace might contain some bogus
Expand Down

0 comments on commit ceb43da

Please sign in to comment.