dongjoon-hyun opened a new pull request #35414: URL: https://github.com/apache/spark/pull/35414
### What changes were proposed in this pull request? This PR aims to use static factor methods instead of the deprecated `Integer` constructors and add Java/Scala linter rules to enforce new styles. ### Why are the changes needed? `Integer` constructors are deprecated in Java 9. - https://docs.oracle.com/javase/9/docs/api/java/lang/Integer.html#Integer-int- - https://docs.oracle.com/javase/9/docs/api/java/lang/Integer.html#Integer-java.lang.String- ### Does this PR introduce _any_ user-facing change? No. ### How was this patch tested? Pass the CIs with the newly added Scalastyle and Java Checkstyle. -- 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]
