dongjoon-hyun opened a new pull request, #856: URL: https://github.com/apache/spark-kubernetes-operator/pull/856
### What changes were proposed in this pull request? This PR aims to upgrade PMD from 7.24.0 to 7.27.0. Since the ruleset references whole rule categories, the rules added or improved in 7.25.0 ~ 7.27.0 apply automatically and reported 26 violations. `VariableDeclarationUsageDistance` (new in 7.25.0) is excluded, like the other readability-heuristic rules already excluded from `category/java/codestyle.xml`. The rest are fixed in place: - `ProtectedMemberInFinalClass`: the `protected` members of the `final` class `AppCleanUpStep` become package-private. - `InstantiableUtilityClass`: `Constants` and `LoggingUtils` become `final` with a private constructor. - `AvoidInstanceofChecksInCatchClause`: the multi-catch in `KueueWorkloadUtils.holdForAdmission` is split into separate clauses. - `UseStandardCharsets`: `ConfOptionDocGenerator` passes `StandardCharsets.UTF_8` instead of `"UTF-8"`. ### Why are the changes needed? To support Java 27. PMD 7.27.0 adds Java 27 language support, which keeps the linter ahead of the JDK versions used by the CI matrix. - https://github.com/pmd/pmd/releases/tag/pmd_releases%2F7.25.0 (2026-05-29) - https://github.com/pmd/pmd/releases/tag/pmd_releases%2F7.26.0 (2026-06-29) - https://github.com/pmd/pmd/releases/tag/pmd_releases%2F7.27.0 (2026-08-28) ### Does this PR introduce _any_ user-facing change? No. ### How was this patch tested? Pass the CIs. ### Was this patch authored or co-authored using generative AI tooling? Generated-by: Claude Opus 5 -- 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]
