Skip to content

Commit

Permalink
We can't use .tree.tpe due to Scala 2.10.
Browse files Browse the repository at this point in the history
  • Loading branch information
JoshRosen committed Mar 11, 2016
1 parent 4070c0d commit 86cd513
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,11 @@ object GenerateMIMAIgnore {
private val mirror = runtimeMirror(classLoader)

private def isDeveloperApi(sym: unv.Symbol) = sym.annotations.exists {
_.tree.tpe =:= mirror.staticClass("org.apache.spark.annotation.DeveloperApi").toType
_.tpe =:= mirror.staticClass("org.apache.spark.annotation.DeveloperApi").toType
}

private def isExperimental(sym: unv.Symbol) = sym.annotations.exists {
_.tree.tpe =:= mirror.staticClass("org.apache.spark.annotation.Experimental").toType
_.tpe =:= mirror.staticClass("org.apache.spark.annotation.Experimental").toType
}


Expand Down

0 comments on commit 86cd513

Please sign in to comment.