Ignore:
Timestamp:
2023-01-17T14:41:59+01:00 (17 months ago)
Author:
taylor.smock
Message:

Fix #21423: Prevent error codes from clashing

This works by creating a unique code using the test class name. The new
format for ignore entries will look like UNIQUECODE_CODE_MESSAGE_STATE.
The switchover date for the new entries is set at 2024-01-01 in order to
give users sufficient time to update, such that if a user has multiple
installations of JOSM, all versions will be able to use the same ignore
list. The compatibility code is intended to be removed in 2025.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/io/GeoJSONMapRouletteWriter.java

    r18365 r18636  
    4646        propertiesBuilder.add("message", testError.getMessage());
    4747        Optional.ofNullable(testError.getDescription()).ifPresent(description -> propertiesBuilder.add("description", description));
    48         propertiesBuilder.add("code", testError.getCode());
     48        propertiesBuilder.add("code", testError.getUniqueCode());
    4949        propertiesBuilder.add("fixable", testError.isFixable());
    5050        propertiesBuilder.add("severity", testError.getSeverity().toString());
Note: See TracChangeset for help on using the changeset viewer.