Opened 3 weeks ago
Last modified 12 days ago
#25027 new task
[Patch] Fix for Sonar issues: False-positive report (java:S2259) in TagChecker
| Reported by: | Owned by: | team | |
|---|---|---|---|
| Priority: | normal | Milestone: | 26.12 |
| Component: | Core | Version: | |
| Keywords: | Cc: |
Description
Utils.isEmpty(harmonizedValue) has been replaced by an explicit check for null and emptiness, allowing static code analysis to verify that harmonizedValue is not null. Furthermore, control structures have been updated to include curly braces, and fields and variables have been declared as final.
See: https://josm.openstreetmap.de/sonar/project/issues?s=TYPE_SEVERITY&issueStatuses=CONFIRMED%2COPEN&types=BUG&id=josm&open=AXvWAEXUyP4JTgY8QMT7
See: https://josm.openstreetmap.de/sonar/project/issues?s=TYPE_SEVERITY&issueStatuses=CONFIRMED%2COPEN&types=BUG&id=josm&open=AXvWAEXUyP4JTgY8QMT8
Attachments (1)
Change History (3)
by , 3 weeks ago
| Attachment: | #25027-Fix-Sonar-issues-in-TagChecker.patch added |
|---|
comment:1 by , 3 weeks ago
comment:2 by , 12 days ago
| Milestone: | → 26.12 |
|---|



I really think the problem should better be fixed in Sonar, else we should remove method Utils.isEmpty() completely.