Ignore:
Timestamp:
2020-06-14T17:17:08+02:00 (4 years ago)
Author:
simon04
Message:

see #19334 - https://errorprone.info/bugpattern/UnnecessaryParentheses

File:
1 edited

Legend:

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

    r16628 r16630  
    344344    private static Rectangle boundsWithYandHeight(Rectangle bounds, double y, double height) {
    345345        Rectangle r = new Rectangle();
    346         r.setBounds((int) (bounds.getX()), (int) y, (int) (bounds.getWidth()), (int) height);
     346        r.setBounds((int) bounds.getX(), (int) y, (int) bounds.getWidth(), (int) height);
    347347        return r;
    348348    }
     
    350350    private static Rectangle boundsWithXandWidth(Rectangle bounds, double x, double width) {
    351351        Rectangle r = new Rectangle();
    352         r.setBounds((int) x, (int) (bounds.getY()), (int) width, (int) (bounds.getHeight()));
     352        r.setBounds((int) x, (int) bounds.getY(), (int) width, (int) bounds.getHeight());
    353353        return r;
    354354    }
Note: See TracChangeset for help on using the changeset viewer.