-
Notifications
You must be signed in to change notification settings - Fork 28.6k
[SPARK-13986][CORE][MLLIB] Remove DeveloperApi
-annotations for non-publics
#11797
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
@DeveloperApi
-annotated things public.@DeveloperApi
-annotated things public.
Test build #53474 has finished for PR 11797 at commit
|
Just rebased. |
I agree there are discrepancies between the intended meaning of annotations and access modifiers, however my reaction would be to keep everything private and make stuff public on an actual requirement basis. Making things public is easy, however reverting things to private once they're in the wild is hard and can have many unforeseen consequences. So my recommendation is to remove the |
+1 to what @jodersky said. |
Test build #53486 has finished for PR 11797 at commit
|
@DeveloperApi
-annotated things public.DeveloperApi
-annotations for non-publics
I updated this PR and JIRA according to the comments. Thank you all. |
Test build #53499 has finished for PR 11797 at commit
|
Test build #53503 has finished for PR 11797 at commit
|
Merged to master |
Oh, Thank you, @srowen ! |
…publics ## What changes were proposed in this pull request? Spark uses `DeveloperApi` annotation, but sometimes it seems to conflict with visibility. This PR tries to fix those conflict by removing annotations for non-publics. The following is the example. **JobResult.scala** ```scala DeveloperApi sealed trait JobResult DeveloperApi case object JobSucceeded extends JobResult -DeveloperApi private[spark] case class JobFailed(exception: Exception) extends JobResult ``` ## How was this patch tested? Pass the existing Jenkins test. Author: Dongjoon Hyun <dongjoon@apache.org> Closes apache#11797 from dongjoon-hyun/SPARK-13986.
What changes were proposed in this pull request?
Spark uses
@DeveloperApi
annotation, but sometimes it seems to conflict with visibility. This PR tries to fix those conflict by removing annotations for non-publics. The following is the example.JobResult.scala
How was this patch tested?
Pass the existing Jenkins test.