Ignore:
Timestamp:
2022-01-26T20:13:22+01:00 (4 years ago)
Author:
taylor.smock
Message:

Replace usages of System.exit with Lifecycle.exitJosm

This fixes some coverity scan issues (spotbugs) with respect to exiting the VM.

See #15182: Standalone JOSM validator

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/data/validation/ValidatorCLI.java

    r18365 r18366  
    6969 */
    7070public class ValidatorCLI implements CLIModule {
    71         /**
    72         * The unique instance.
    73         */
     71    /**
     72    * The unique instance.
     73    */
    7474    public static final ValidatorCLI INSTANCE = new ValidatorCLI();
    7575
     
    385385        case HELP:
    386386            showHelp();
    387             System.exit(0);
     387            Lifecycle.exitJosm(true, 0);
    388388            break;
    389389        case DEBUG:
Note: See TracChangeset for help on using the changeset viewer.