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
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/layer/TMSLayer.java

    r8291 r8318  
    13241324                continue;
    13251325            }
    1326             if (missedTiles.size() <= 0) {
     1326            if (missedTiles.isEmpty()) {
    13271327                break;
    13281328            }
     
    13511351            missedTiles = newlyMissedTiles;
    13521352        }
    1353         if (Main.isDebugEnabled() && missedTiles.size() > 0) {
     1353        if (Main.isDebugEnabled() && !missedTiles.isEmpty()) {
    13541354            Main.debug("still missed "+missedTiles.size()+" in the end");
    13551355        }
Note: See TracChangeset for help on using the changeset viewer.