Ignore:
Timestamp:
2023-07-24T15:55:23+02:00 (2 years ago)
Author:
taylor.smock
Message:

reltoolbox: Clean up a bunch of lint warnings

File:
1 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/reltoolbox/src/relcontext/relationfix/AssociatedStreetFixer.java

    r33708 r36102  
    155155         */
    156156        // return results
    157         if (commandList.size() == 0)
     157        if (commandList.isEmpty()) {
    158158            return null;
    159         if (commandList.size() == 1)
    160             return commandList.get(0);
    161         return new SequenceCommand(tr("fix associatedStreet relation"), commandList);
     159        }
     160        return SequenceCommand.wrapIfNeeded(tr("fix associatedStreet relation"), commandList);
    162161    }
    163162}
Note: See TracChangeset for help on using the changeset viewer.