Ignore:
Timestamp:
2016-03-13T00:27:11+01:00 (4 years ago)
Author:
Don-vip
Message:

sonar - make some final fields static too, use Collection.isEmpty(), remove useless cast

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/corrector/TagCorrector.java

    r9067 r9975  
    4646    public abstract Collection<Command> execute(P oldprimitive, P primitive) throws UserCancelException;
    4747
    48     private final String[] applicationOptions = new String[] {
     48    private static final String[] APPLICATION_OPTIONS = new String[] {
    4949            tr("Apply selected changes"),
    5050            tr("Do not apply changes"),
     
    133133                    JOptionPane.PLAIN_MESSAGE,
    134134                    null,
    135                     applicationOptions,
    136                     applicationOptions[0]
     135                    APPLICATION_OPTIONS,
     136                    APPLICATION_OPTIONS[0]
    137137            );
    138138
Note: See TracChangeset for help on using the changeset viewer.