Changeset 15292 in josm


Ignore:
Timestamp:
2019-08-08T01:01:59+02:00 (2 weeks ago)
Author:
Don-vip
Message:

checkstyle/pmd/sonar

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

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/data/osm/visitor/paint/AbstractMapRenderer.java

    r13989 r15292  
    118118
    119119            g.setColor(backgroundColor);
    120             g.fill(new Rectangle2D.Double(x-1, y-12, 8*strlen+1, 14));
     120            g.fill(new Rectangle2D.Double(x-1, y-12, 8*strlen+1d, 14));
    121121            g.setColor(clr);
    122122            g.drawString(on, (int) x, (int) y);
  • trunk/src/org/openstreetmap/josm/data/osm/visitor/paint/StyledMapRenderer.java

    r14583 r15292  
    757757                g.setColor(color);
    758758            }
    759             Rectangle2D rect = new Rectangle2D.Double(p.getInViewX()-radius-1, p.getInViewY()-radius-1, size + 1, size + 1);
     759            Rectangle2D rect = new Rectangle2D.Double(p.getInViewX()-radius-1d, p.getInViewY()-radius-1d, size + 1d, size + 1d);
    760760            if (fill) {
    761761                g.fill(rect);
     
    843843        temporaryGraphics.drawImage(img.getImage(disabled), drawX, drawY, nc);
    844844        if (selected || member) {
    845             selectionDrawer.accept(temporaryGraphics, new Rectangle2D.Double(drawX - 2, drawY - 2, img.getWidth() + 4, img.getHeight() + 4));
     845            selectionDrawer.accept(temporaryGraphics, new Rectangle2D.Double(drawX - 2d, drawY - 2d, img.getWidth() + 4d, img.getHeight() + 4d));
    846846        }
    847847    }
  • trunk/src/org/openstreetmap/josm/gui/dialogs/SearchDialog.java

    r15109 r15292  
    188188                    return true;
    189189                } catch (SearchParseError | MapCSSException e) {
     190                    Logging.trace(e);
    190191                    return false;
    191192                }
  • trunk/src/org/openstreetmap/josm/gui/layer/gpx/GpxDrawHelper.java

    r15282 r15292  
    14181418
    14191419        // collect frequently used items
    1420         final int fromX = (int) fromPnt.getX(); final int deltaX = (int) (toPnt.getX() - fromX);
    1421         final int fromY = (int) fromPnt.getY(); final int deltaY = (int) (toPnt.getY() - fromY);
     1420        final long fromX = (long) fromPnt.getX(); final long deltaX = (long) (toPnt.getX() - fromX);
     1421        final long fromY = (long) fromPnt.getY(); final long deltaY = (long) (toPnt.getY() - fromY);
    14221422
    14231423        // use same random values for each point
  • trunk/src/org/openstreetmap/josm/gui/mappaint/BooleanStyleSettingGui.java

    r15289 r15292  
    3232
    3333    static class BooleanStyleSettingCheckBoxMenuItem extends JCheckBoxMenuItem {
    34         boolean noRepaint = false;
     34        boolean noRepaint;
    3535
    36         public BooleanStyleSettingCheckBoxMenuItem(BooleanStyleSetting setting) {
     36        BooleanStyleSettingCheckBoxMenuItem(BooleanStyleSetting setting) {
    3737            setAction(new AbstractAction(setting.label) {
    3838                @Override
  • trunk/src/org/openstreetmap/josm/tools/ColorScale.java

    r15247 r15292  
    3333        ColorScale sc = new ColorScale();
    3434        sc.colors = Utils.copyArray(colors);
    35         sc.setRange(0, colors.length - 1);
     35        sc.setRange(0, colors.length - 1d);
    3636        sc.addBounds();
    3737        return sc;
Note: See TracChangeset for help on using the changeset viewer.