Ignore:
Timestamp:
2014-08-15T18:53:18+02:00 (5 years ago)
Author:
Don-vip
Message:

fix some Sonar issues

File:
1 edited

Legend:

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

    r7358 r7402  
    2727import org.openstreetmap.josm.gui.io.UploadDialog;
    2828import org.openstreetmap.josm.gui.io.UploadPrimitivesTask;
    29 import org.openstreetmap.josm.gui.layer.ModifiableLayer;
     29import org.openstreetmap.josm.gui.layer.AbstractModifiableLayer;
    3030import org.openstreetmap.josm.gui.layer.OsmDataLayer;
    3131import org.openstreetmap.josm.gui.util.GuiHelper;
     
    143143    }
    144144
    145     public static boolean checkPreUploadConditions(ModifiableLayer layer) {
     145    public static boolean checkPreUploadConditions(AbstractModifiableLayer layer) {
    146146        return checkPreUploadConditions(layer,
    147147                layer instanceof OsmDataLayer ? new APIDataSet(((OsmDataLayer)layer).data) : null);
     
    164164     * want to continue
    165165     */
    166     public static boolean warnUploadDiscouraged(ModifiableLayer layer) {
     166    public static boolean warnUploadDiscouraged(AbstractModifiableLayer layer) {
    167167        return GuiHelper.warnUser(tr("Upload discouraged"),
    168168                "<html>" +
     
    184184     * @return true, if the preconditions are met; false, otherwise
    185185     */
    186     public static boolean checkPreUploadConditions(ModifiableLayer layer, APIDataSet apiData) {
     186    public static boolean checkPreUploadConditions(AbstractModifiableLayer layer, APIDataSet apiData) {
    187187        if (layer.isUploadDiscouraged()) {
    188188            if (warnUploadDiscouraged(layer)) {
Note: See TracChangeset for help on using the changeset viewer.