Index: /applications/editors/josm/plugins/poly/src/poly/DownloadPolyTask.java
===================================================================
--- /applications/editors/josm/plugins/poly/src/poly/DownloadPolyTask.java	(revision 34964)
+++ /applications/editors/josm/plugins/poly/src/poly/DownloadPolyTask.java	(revision 34965)
@@ -43,7 +43,14 @@
     }
 
+    /**
+     * Class to download and parse a poly file.  
+     */
     public static class ServerPolyReader extends OsmServerReader {
         private String url;
 
+        /**
+         * Create new {@link ServerPolyReader}
+         * @param url
+         */
         public ServerPolyReader(String url) {
             this.url = url;
@@ -53,5 +60,5 @@
         public DataSet parseOsm(ProgressMonitor progressMonitor) throws OsmTransferException {
             try {
-                progressMonitor.beginTask(tr("Contacting Server...", 10));
+                progressMonitor.beginTask(tr("Contacting Server..."));
                 return new PolyImporter().parseDataSet(url);
             } catch (Exception e) {
Index: /applications/editors/josm/plugins/poly/src/poly/PolyImporter.java
===================================================================
--- /applications/editors/josm/plugins/poly/src/poly/PolyImporter.java	(revision 34964)
+++ /applications/editors/josm/plugins/poly/src/poly/PolyImporter.java	(revision 34965)
@@ -93,5 +93,5 @@
                 parsingSection = false;
                 name = null;
-            } else if (line.equals("END")) {
+            } else if ("END".equals(line)) {
                 if (!parsingSection) {
                     area = null;
@@ -238,4 +238,8 @@
         }
 
+        /**
+         * Store a coordinate
+         * @param node the coordinate
+         */
         public void addNode(LatLon node) {
             if (nodes.isEmpty() || !(nodes.get(nodes.size()-1).equals(node) || nodes.get(0).equals(node)))
@@ -255,4 +259,9 @@
         }
 
+        /**
+         * Convert a ring to an OSM way
+         * @param ds the dataset in which the way is stored
+         * @param isMultipolygon true means the way is part of a multipolygon relation
+         */
         public void constructWay(DataSet ds, boolean isMultipolygon) {
             way = new Way();
