Changeset 8612 in josm for trunk/src/org


Ignore:
Timestamp:
2015-07-23T02:16:21+02:00 (9 years ago)
Author:
Don-vip
Message:

fix QA issues (javadoc, findbugs, checkstyle)

Location:
trunk/src/org/openstreetmap/josm/gui
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/MapView.java

    r8573 r8612  
    299299        initialViewport = viewportData;
    300300        Main.pref.addPreferenceChangeListener(this);
    301         final boolean unregisterTab = Shortcut.findShortcut(KeyEvent.VK_TAB, 0) != null;
    302301
    303302        addComponentListener(new ComponentAdapter() {
     
    361360    private Point oldLoc = null;
    362361
    363     /*
     362    /**
    364363     * Call this method to keep map position on screen during next repaint
    365364     */
  • trunk/src/org/openstreetmap/josm/gui/NavigatableComponent.java

    r8557 r8612  
    163163     * @return The current system of measurement (metric system by default).
    164164     * @since 3490
    165      * @deprecated use {@link SystemOfMeasurement#getSoMChangeListener} instead.
     165     * @deprecated use {@link SystemOfMeasurement#getSystemOfMeasurement} instead.
    166166     */
    167167    @Deprecated
     
    175175     * @throws IllegalArgumentException if {@code somKey} is not known
    176176     * @since 6056
    177      * @deprecated use {@link SystemOfMeasurement#setSoMChangeListener} instead.
     177     * @deprecated use {@link SystemOfMeasurement#setSystemOfMeasurement} instead.
    178178     */
    179179    @Deprecated
  • trunk/src/org/openstreetmap/josm/gui/dialogs/InspectPrimitiveDialog.java

    r8565 r8612  
    417417            final String username = entry.getKey();
    418418            final Integer editCount = entry.getValue();
    419             s.append(String.format("%6d  %s\n", editCount, username));
     419            s.append(String.format("%6d  %s%n", editCount, username));
    420420        }
    421421        return s.toString();
  • trunk/src/org/openstreetmap/josm/gui/layer/AbstractTileSourceLayer.java

    r8604 r8612  
    184184        } catch (MalformedURLException e) {
    185185            // ignore, assume that this is not a file
     186            if (Main.isDebugEnabled()) {
     187                Main.debug(e.getMessage());
     188            }
    186189        }
    187190
  • trunk/src/org/openstreetmap/josm/gui/mappaint/mapcss/Condition.java

    r8515 r8612  
    1313
    1414import org.openstreetmap.josm.Main;
    15 import org.openstreetmap.josm.actions.search.SearchCompiler;
     15import org.openstreetmap.josm.actions.search.SearchCompiler.InDataSourceArea;
    1616import org.openstreetmap.josm.data.osm.Node;
    1717import org.openstreetmap.josm.data.osm.OsmPrimitive;
     
    469469        }
    470470
    471         private static final Predicate<OsmPrimitive> IN_DOWNLOADED_AREA = new SearchCompiler.InDataSourceArea(false);
     471        private static final Predicate<OsmPrimitive> IN_DOWNLOADED_AREA = new InDataSourceArea(false);
    472472
    473473        /**
    474474         * {@code in-downloaded-area} tests whether the object is within source area ("downloaded area").
    475          * @see SearchCompiler.InDataSourceArea
     475         * @see InDataSourceArea
    476476         */
    477477        static boolean inDownloadedArea(Environment e) {
    478478            return IN_DOWNLOADED_AREA.evaluate(e.osm);
    479479        }
    480 
    481480    }
    482481
Note: See TracChangeset for help on using the changeset viewer.