Github user yanboliang commented on a diff in the pull request:
https://github.com/apache/spark/pull/17946#discussion_r115935056
--- Diff: mllib/src/main/scala/org/apache/spark/ml/util/ReadWrite.scala ---
@@ -44,9 +44,11 @@ private[util] sealed trait BaseReadWrite {
/**
* Sets the Spark SQLContext to use for saving/loading.
+ *
+ * @deprecated Use session instead. This method will be removed in 3.0.0.
--- End diff --
Add this can make Scala ```MLWriter``` and ```MLReader``` produce correct
deprecated annotation, just like the screenshot in PR description.
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]