Changes between Version 1 and Version 2 of Ticket #24951, comment 1
- Timestamp:
- 2026-10-11T17:34:58+02:00 (3 weeks ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #24951, comment 1
v1 v2 8 8 ==== #8464 grid 9 9 * `MapFrame.gridOverlay`, `ShowTileBordersAction.layer` and `GridPreference.TranslatedRenderer.name` are now `transient` (S1948). 10 * `AlignGridRotationAction.getSelectedDirection()` returns a n empty arrayinstead of `null` (S1168). The callers and `GridActionsTest` now check the length. This is the same change as #24949,but italso updates the other two `assertNull` checks on `getSelectedDirection()` in `GridActionsTest`. The #24949 patch only changes the first, so the test would fail with it.10 * `AlignGridRotationAction.getSelectedDirection()` returns a shared `EMPTY_DIRECTION` constant instead of `null` (S1168). The callers and `GridActionsTest` now check the length. This is the same change as #24949, and the constant is taken from that patch, thanks DanProgs. This patch also updates the other two `assertNull` checks on `getSelectedDirection()` in `GridActionsTest`. The #24949 patch only changes the first, so the test would fail with it. 11 11 * `GridPreference`: `GBC.HORIZONTAL`/`GBC.BOTH` → `GridBagConstraints.HORIZONTAL`/`BOTH` (S3252) 12 12 * `MapGridPaintable.getLatLonGridLines()`: the meridian loop is moved out into `addMeridian()`, to go with the existing `addParallel()`. This brings the cognitive complexity down from 19 to under 15 (S3776). … … 15 15 * S1940 "use `<=`": the `!(x > 0)` checks were written that way on purpose so that NaN gets rejected too, and a plain `x <= 0` would let NaN through. They now call a small `isPositive()` helper in `MapGridPaintable`. In `GridPreference`, where the value is parsed from user input, the check is `Double.isNaN(value) || value <= 0`. The one in `addParallel()` never sees NaN, so it is simply `maxLon <= minLon`. 16 16 17 There is no change in behaviour. `GridActionsTest`, `MapGridPaintableTest`, `ShowTileBordersActionTest`, `TileSourceDisplaySettingsTest`, `GridPreferenceTest` and `OsmConnectionTest` all pass, and checkstyle is clean.17 There is no change in behaviour. `GridActionsTest`, `MapGridPaintableTest`, `ShowTileBordersActionTest`, `TileSourceDisplaySettingsTest`, `GridPreferenceTest` and `OsmConnectionTest` all pass, and checkstyle and `ant pmd` report nothing in the changed files.


