diff options
author | Dongjoon Hyun <dongjoon@apache.org> | 2016-03-02 20:34:22 -0800 |
---|---|---|
committer | Reynold Xin <rxin@databricks.com> | 2016-03-02 20:34:22 -0800 |
commit | 9c274ac4a6a190a436180ffb0db0c926d6abd0b0 (patch) | |
tree | ef1aed679969de53fe531fd9d3eb93ac860b89eb /tools/src/main/scala/org | |
parent | b60b8137992641b9193e57061aa405f908b0f267 (diff) | |
download | spark-9c274ac4a6a190a436180ffb0db0c926d6abd0b0.tar.gz spark-9c274ac4a6a190a436180ffb0db0c926d6abd0b0.tar.bz2 spark-9c274ac4a6a190a436180ffb0db0c926d6abd0b0.zip |
[SPARK-13627][SQL][YARN] Fix simple deprecation warnings.
## What changes were proposed in this pull request?
This PR aims to fix the following deprecation warnings.
* MethodSymbolApi.paramss--> paramLists
* AnnotationApi.tpe -> tree.tpe
* BufferLike.readOnly -> toList.
* StandardNames.nme -> termNames
* scala.tools.nsc.interpreter.AbstractFileClassLoader -> scala.reflect.internal.util.AbstractFileClassLoader
* TypeApi.declarations-> decls
## How was this patch tested?
Check the compile build log and pass the tests.
```
./build/sbt
```
Author: Dongjoon Hyun <dongjoon@apache.org>
Closes #11479 from dongjoon-hyun/SPARK-13627.
Diffstat (limited to 'tools/src/main/scala/org')
-rw-r--r-- | tools/src/main/scala/org/apache/spark/tools/GenerateMIMAIgnore.scala | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/src/main/scala/org/apache/spark/tools/GenerateMIMAIgnore.scala b/tools/src/main/scala/org/apache/spark/tools/GenerateMIMAIgnore.scala index a947fac1d7..3eed6aee65 100644 --- a/tools/src/main/scala/org/apache/spark/tools/GenerateMIMAIgnore.scala +++ b/tools/src/main/scala/org/apache/spark/tools/GenerateMIMAIgnore.scala @@ -44,10 +44,10 @@ object GenerateMIMAIgnore { private def isDeveloperApi(sym: unv.Symbol) = - sym.annotations.exists(_.tpe =:= unv.typeOf[org.apache.spark.annotation.DeveloperApi]) + sym.annotations.exists(_.tree.tpe =:= unv.typeOf[org.apache.spark.annotation.DeveloperApi]) private def isExperimental(sym: unv.Symbol) = - sym.annotations.exists(_.tpe =:= unv.typeOf[org.apache.spark.annotation.Experimental]) + sym.annotations.exists(_.tree.tpe =:= unv.typeOf[org.apache.spark.annotation.Experimental]) private def isPackagePrivate(sym: unv.Symbol) = |