slfan1989 opened a new pull request, #2027: URL: https://github.com/apache/auron/pull/2027
### Which issue does this PR close? Closes #2026 ### Rationale for this change The codebase currently uses the deprecated `scala.collection.JavaConverters` API for Java-Scala collection conversions. This API was deprecated in Scala 2.13 in favor of `scala.jdk.CollectionConverters`. Current issues: - Deprecation warnings are being suppressed in build configuration (pom.xml:1055) - Using outdated API that doesn't follow Scala best practices - Potential migration barrier when upgrading to Scala 2.13+ The project already includes `scala-collection-compat` dependency (version 2.12.0), which provides a compatibility layer allowing the use of modern `scala.jdk.CollectionConverters` API in Scala 2.12 without any behavioral changes. ### What changes are included in this PR? **How this works with Scala 2.12:** The `scala-collection-compat` library provides a compatibility layer that: - In Scala 2.12: redirects `scala.jdk.CollectionConverters` to `scala.collection.JavaConverters` - In Scala 2.13+: uses native `scala.jdk.CollectionConverters` This ensures zero runtime behavioral changes. ### Are there any user-facing changes? No. This is purely an internal code refactoring with no user-facing changes or behavioral differences. ### How was this patch tested? Existing unit tests pass. -- 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]
