Ignore:
Timestamp:
2019-04-07T07:11:41+02:00 (5 years ago)
Author:
gerdp
Message:

fix SonarLint/javadoc issues

Location:
applications/editors/josm/plugins/poly/src/poly
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/poly/src/poly/DownloadPolyTask.java

    r34298 r34965  
    4343    }
    4444
     45    /**
     46     * Class to download and parse a poly file. 
     47     */
    4548    public static class ServerPolyReader extends OsmServerReader {
    4649        private String url;
    4750
     51        /**
     52         * Create new {@link ServerPolyReader}
     53         * @param url
     54         */
    4855        public ServerPolyReader(String url) {
    4956            this.url = url;
     
    5360        public DataSet parseOsm(ProgressMonitor progressMonitor) throws OsmTransferException {
    5461            try {
    55                 progressMonitor.beginTask(tr("Contacting Server...", 10));
     62                progressMonitor.beginTask(tr("Contacting Server..."));
    5663                return new PolyImporter().parseDataSet(url);
    5764            } catch (Exception e) {
  • applications/editors/josm/plugins/poly/src/poly/PolyImporter.java

    r34860 r34965  
    9393                parsingSection = false;
    9494                name = null;
    95             } else if (line.equals("END")) {
     95            } else if ("END".equals(line)) {
    9696                if (!parsingSection) {
    9797                    area = null;
     
    238238        }
    239239
     240        /**
     241         * Store a coordinate
     242         * @param node the coordinate
     243         */
    240244        public void addNode(LatLon node) {
    241245            if (nodes.isEmpty() || !(nodes.get(nodes.size()-1).equals(node) || nodes.get(0).equals(node)))
     
    255259        }
    256260
     261        /**
     262         * Convert a ring to an OSM way
     263         * @param ds the dataset in which the way is stored
     264         * @param isMultipolygon true means the way is part of a multipolygon relation
     265         */
    257266        public void constructWay(DataSet ds, boolean isMultipolygon) {
    258267            way = new Way();
Note: See TracChangeset for help on using the changeset viewer.