Attachments (1)
Change History (41)
comment:1 by , 8 months ago
comment:2 by , 8 months ago
Sorry, the recent changes caused another build failure in my Eclipse installation, so atm I try to fix that.
comment:3 by , 8 months ago
I found that an "svn cleanup --remove-ignored" helped. I had to do this for the CI to work.
comment:4 by , 8 months ago
Also note, that while I tried to keep downwards compatibility intact I may have created some places where Java >= 21 is required. I don't plan to actively search such issues as long as the JOSM server stuff for the needed builds does still work with Java 11.
follow-up: 8 comment:5 by , 8 months ago
My problems with Eclipse are fixed. No idea what exactly was wrong, it used an older version of the compression library.
comment:8 by , 8 months ago
Replying to GerdP:
My problems with Eclipse are fixed. No idea what exactly was wrong
That's the reason why I don't use eclipse. That "No idea why" happened too often to me...
follow-up: 10 comment:9 by , 8 months ago
I can take care about the "Public member ... declared in a non-public type" messages. My understanding is that I just have to remove the public key word.
comment:10 by , 8 months ago
Replying to GerdP:
I can take care about the "Public member ... declared in a non-public type" messages. My understanding is that I just have to remove the
publickey word.
Or change to "protected"? I'm not totally sure. Had only a short look at the PMD description.
comment:11 by , 8 months ago
In https://github.com/pmd/pmd/pull/6231 I see that either public should be removed or private should be added.
Anyhow there seem to be more to this because when I change the flagged places in src\org\openstreetmap\josm\data\coor\Coordinate.java I can no longer compile. Not yet sure if this is a PMD error or if I have to change more code.
comment:17 by , 8 months ago
Only 2 types missing:
- ReplaceJavaUtilDate
- OverrideBothEqualsAndHashCodeOnComparable
comment:20 by , 6 months ago
| Milestone: | 26.03 → 26.05 |
|---|
comment:22 by , 2 months ago
| Milestone: | 26.07 → 26.09 |
|---|
by , 3 weeks ago
| Attachment: | josm_24635.patch added |
|---|
comment:24 by , 3 weeks ago
So as you see I used PMD 7.27 (not updated in Ant and Ivy yet), but with the current 7.22 the config change not causing anything meaningful change, maybe one more false positive.
PMD config: I removed the obsolete excludes that are no longer in version 7.x. I also removed e.g. the InefficientEmptyStringCheck performance rule exclusion, since Java 11+ has the isBlank() method, and a few more, which do not report violations on the trunk version.
What remains that I don't like is the rule ExhaustiveSwitchHasDefault; it's a bit noisy in my opinion. There are also a few OverrideBothEqualsAndHashCodeOnComparable.
comment:26 by , 4 days ago
Will we have a release this month? If not, I would like to start applying the fixes for the warnings and update the config/upgrade PMD to latest version.
comment:27 by , 3 days ago
Actually I planned to have a release. But it seems I have no time. In any case don't delay any changes.
comment:34 by , 2 days ago
I don't see UnusedPrivateMethod on PMD 7.28.0. I updated it in r19628. Are you using this version?
In fact, there are two new UnnecessaryWarningSuppression.
comment:36 by , 2 days ago
Ah. Seems GitHub runs another version? https://github.com/JOSM/josm/actions/workflows/pmd-analysis.yml
comment:38 by , 2 days ago
Wonderful, another one in last change: GitHub PMD complains about "@SuppressWarnings" and "ant pmd" issues "CloseResource" for MapboxVectorCachedTileLoader.java
Can we get that unified?
comment:40 by , 2 days ago
So ant pmd includes the script/ folder, while maven pmd:pmd does not. I used the latter one, CI uses ant pmd for the PMD action.
However, this still does not explain the issue. I also suspect that there are only 10 errors displayed on GitHub due to some kind of limitation.
Can we get that unified?
Sure. I'll look into that as well besides ticket:24234#comment:53, after I finished the Java 17 migration locally, if that's okay :) Already made changes in over 600 files summed and over 10 branches. Mostly mechanical replacements.



I don't have any at the moment, but hopefully I will have some in the following weeks.