Changeset 13934 in josm for trunk/src


Ignore:
Timestamp:
2018-06-15T18:24:09+02:00 (6 years ago)
Author:
Don-vip
Message:

fix PMD/Javadoc issues

Location:
trunk/src/org/openstreetmap/josm
Files:
3 edited

Legend:

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

    r13933 r13934  
    402402         * @param reader OSM data reader
    403403         * @param progressMonitor progress monitor
    404          * @deprecated Use {@link #DownloadTask(DownloadParams, OsmServerReader, ProgressMonitor)}
     404         * @deprecated Use {@link DownloadOsmTask.DownloadTask#DownloadTask(DownloadParams, OsmServerReader, ProgressMonitor)}
    405405         */
    406406        @Deprecated
     
    415415         * @param progressMonitor progress monitor
    416416         * @param zoomAfterDownload If true, the map view will zoom to download area after download
    417          * @deprecated Use {@link #DownloadTask(DownloadParams, OsmServerReader, ProgressMonitor, boolean)}
     417         * @deprecated Use {@link DownloadOsmTask.DownloadTask#DownloadTask(DownloadParams, OsmServerReader, ProgressMonitor, boolean)}
    418418         */
    419419        @Deprecated
  • trunk/src/org/openstreetmap/josm/gui/download/overpass/OverpassWizardRegistration.java

    r13930 r13934  
    9494
    9595    /**
    96      * Wizard callbacks required by {@link OverpassQueryWizard#startWizard(OverpassWizardCallbacks)}
     96     * Wizard callbacks required by {@link OverpassWizardRegistration.OverpassQueryWizard#startWizard(OverpassWizardCallbacks)}
    9797     * @author Michael Zangl
    9898     * @since 13930
  • trunk/src/org/openstreetmap/josm/io/remotecontrol/handler/RequestHandler.java

    r13929 r13934  
    308308    }
    309309
     310    private boolean get(String key) {
     311        return get(key, Boolean::parseBoolean, () -> false);
     312    }
     313
    310314    private boolean isLoadInNewLayer() {
    311315        return get("new_layer", Boolean::parseBoolean, () -> Config.getPref().getBoolean(loadInNewLayerKey, loadInNewLayerDefault));
    312     }
    313 
    314     private boolean is(String key) {
    315         return get(key, Boolean::parseBoolean, () -> false);
    316316    }
    317317
     
    320320                .withNewLayer(isLoadInNewLayer())
    321321                .withLayerName(args.get("layer_name"))
    322                 .withLocked(is("layer_locked"))
     322                .withLocked(get("layer_locked"))
    323323                .withDownloadPolicy(get("download_policy", DownloadPolicy::of, () -> DownloadPolicy.NORMAL))
    324324                .withUploadPolicy(get("upload_policy", UploadPolicy::of, () -> UploadPolicy.NORMAL));
Note: See TracChangeset for help on using the changeset viewer.