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/actions/downloadtasks
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/actions/downloadtasks/DownloadNotesTask.java

    r8218 r8318  
    114114            }
    115115            NoteLayer layer;
    116             if (noteLayers != null && noteLayers.size() > 0) {
     116            if (noteLayers != null && !noteLayers.isEmpty()) {
    117117                layer = noteLayers.get(0);
    118118                layer.getNoteData().addNotes(notesData);
  • trunk/src/org/openstreetmap/josm/actions/downloadtasks/DownloadNotesUrlIdTask.java

    r8240 r8318  
    22package org.openstreetmap.josm.actions.downloadtasks;
    33
    4 import org.openstreetmap.josm.gui.progress.ProgressMonitor;
     4import static org.openstreetmap.josm.tools.I18n.tr;
    55
    66import java.util.concurrent.Future;
     
    88import java.util.regex.Pattern;
    99
    10 import static org.openstreetmap.josm.tools.I18n.tr;
     10import org.openstreetmap.josm.gui.progress.ProgressMonitor;
    1111
    1212public class DownloadNotesUrlIdTask extends DownloadNotesTask {
     
    2929    }
    3030
    31     public boolean acceptsUrl(String url) {
    32         return super.acceptsUrl(url);
    33     }
    34 
    3531    @Override
    3632    public String getTitle() {
Note: See TracChangeset for help on using the changeset viewer.