imarkowitz opened a new pull request, #52484: URL: https://github.com/apache/spark/pull/52484
### What changes were proposed in this pull request? Use Java class instead of Scala case class for BreakingChangeInfo and MitigationConfig ### Why are the changes needed? Per comment: https://github.com/apache/spark/pull/52256#discussion_r2378561779 > [cloud-fan](https://github.com/cloud-fan) [5 days ago](https://github.com/apache/spark/pull/52256#discussion_r2378561779) > I just realize that we expose it as a public API via SparkThrowable.getBreakingChangeInfo. We shouldn't expose a case class as public API as it has a wide API surface, including the companion object. > We should follow SparkThrowable and define it in Java. ### Does this PR introduce _any_ user-facing change? No -- interface is almost the same ### How was this patch tested? Updated unit tests ### Was this patch authored or co-authored using generative AI tooling? Used Github co-pilot, mainly for the `equals` and `hashCode` functions -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
