Repository navigation
Commit ee106cb
committed
[SPARK-60014] Upgrade PMD to 7.28.0
### What changes were proposed in this pull request?
This PR aims to upgrade PMD from 7.27.0 to 7.28.0.
Since the ruleset references whole rule categories, the rules added or changed in 7.28.0 apply automatically and reported 15 violations.
- `OnDemandImport` (new in 7.28.0, 14 violations) is excluded because this project allows wildcard imports, like Checkstyle (no `AvoidStarImport`) and the already excluded `TooManyStaticImports` rule.
- `SimplifyConditional` is fixed in place: `PrometheusPullModelHandler.formatGauge` moves the `instanceof Number` check forward and removes the redundant null check.
### Why are the changes needed?
To use the latest PMD release, which includes new Java rules and bug fixes.
- https://github.com/pmd/pmd/releases/tag/pmd_releases%2F7.28.0 (2026-09-25)
### 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.5
Closes #942 from dongjoon-hyun/SPARK-60014.
Authored-by: Dongjoon Hyun <dongjoon@apache.org>
Signed-off-by: Dongjoon Hyun <dongjoon@apache.org>1 parent 0b3e382 commit ee106cb
4 files changed
Lines changed: 22 additions & 22 deletions
File tree
- config/pmd
- gradle
- spark-operator/src/main/java/org/apache/spark/k8s/operator/metrics
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
| 30 | + | |
30 | 31 | | |
31 | 32 | | |
32 | 33 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
39 | | - | |
| 39 | + | |
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1747 | 1747 | | |
1748 | 1748 | | |
1749 | 1749 | | |
1750 | | - | |
1751 | | - | |
1752 | | - | |
| 1750 | + | |
| 1751 | + | |
| 1752 | + | |
1753 | 1753 | | |
1754 | 1754 | | |
1755 | | - | |
1756 | | - | |
1757 | | - | |
| 1755 | + | |
| 1756 | + | |
| 1757 | + | |
1758 | 1758 | | |
1759 | | - | |
1760 | | - | |
| 1759 | + | |
| 1760 | + | |
1761 | 1761 | | |
1762 | 1762 | | |
1763 | | - | |
1764 | | - | |
1765 | | - | |
| 1763 | + | |
| 1764 | + | |
| 1765 | + | |
1766 | 1766 | | |
1767 | | - | |
1768 | | - | |
| 1767 | + | |
| 1768 | + | |
1769 | 1769 | | |
1770 | 1770 | | |
1771 | | - | |
1772 | | - | |
1773 | | - | |
| 1771 | + | |
| 1772 | + | |
| 1773 | + | |
1774 | 1774 | | |
1775 | | - | |
1776 | | - | |
| 1775 | + | |
| 1776 | + | |
1777 | 1777 | | |
1778 | 1778 | | |
1779 | 1779 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
189 | 189 | | |
190 | 190 | | |
191 | 191 | | |
192 | | - | |
193 | | - | |
194 | | - | |
| 192 | + | |
| 193 | + | |
195 | 194 | | |
196 | 195 | | |
197 | 196 | | |
| |||
0 commit comments