Ignore:
Timestamp:
2015-05-03T18:34:33+02:00 (9 years ago)
Author:
Don-vip
Message:

fix various Sonar issues:

  • squid:S1068: Unused private fields should be removed
  • squid:S1155: Collection.isEmpty() should be used to test for emptiness
  • squid:S1185: Overriding methods should do more than simply call the same method in the super class
  • squid:S1694: An abstract class should have both abstract and concrete methods
  • squid:S1905: Redundant casts should not be used
  • squid:S2065: Fields in non-serializable classes should not be "transient"
  • squid:S2583: Conditions should not unconditionally evaluate to "TRUE" or to "FALSE"
  • squid:ModifiersOrderCheck: Modifiers should be declared in the correct order
Location:
trunk/src/org/openstreetmap/josm/io/remotecontrol/handler
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/io/remotecontrol/handler/LoadAndZoomHandler.java

    r8221 r8318  
    6060        String msg = tr("Remote Control has been asked to load data from the API.") +
    6161                "<br>" + tr("Bounding box: ") + new BBox(minlon, minlat, maxlon, maxlat).toStringCSV(", ");
    62         if (args.containsKey("select") && toSelect.size() > 0) {
     62        if (args.containsKey("select") && !toSelect.isEmpty()) {
    6363            msg += "<br>" + tr("Selection: {0}", toSelect.size());
    6464        }
  • trunk/src/org/openstreetmap/josm/io/remotecontrol/handler/RequestHandler.java

    r8304 r8318  
    313313    }
    314314
    315     public static abstract class RawURLParseRequestHandler extends RequestHandler {
     315    public abstract static class RawURLParseRequestHandler extends RequestHandler {
    316316        @Override
    317317        protected void parseArgs() {
Note: See TracChangeset for help on using the changeset viewer.