Changeset 19307 in josm for trunk/scripts


Ignore:
Timestamp:
2025-02-03T20:59:54+01:00 (6 weeks ago)
Author:
taylor.smock
Message:

Fix most new PMD issues

It would be better to use the newer switch syntax introduced in Java 14 (JEP 361),
but we currently target Java 11+. When we move to Java 17, this should be
reverted and the newer switch syntax should be used.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/scripts/TagInfoExtract.java

    r19184 r19307  
    122122                script.new ExternalPresets().run();
    123123                break;
    124             default:
    125                 throw new IllegalStateException("Invalid type " + script.options.mode);
    126124        }
    127125        if (!script.options.noexit) {
Note: See TracChangeset for help on using the changeset viewer.