Ignore:
Timestamp:
2018-05-26T20:11:44+02:00 (6 years ago)
Author:
Don-vip
Message:

SonarQube - fix more code issues

File:
1 edited

Legend:

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

    r13810 r13852  
    595595            int textWidth = (int) bounds.getWidth();
    596596            if (bs.hAlign == HorizontalTextAlignment.CENTER) {
    597                 x -= textWidth / 2;
     597                x -= textWidth / 2d;
    598598            } else if (bs.hAlign == HorizontalTextAlignment.LEFT) {
    599599                x -= -box.x + 4 + textWidth;
     
    16671667        try {
    16681668            record.paintPrimitive(paintSettings, this);
    1669         } catch (JosmRuntimeException | IllegalArgumentException | IllegalStateException | NullPointerException e) {
     1669        } catch (RuntimeException e) {
    16701670            throw BugReport.intercept(e).put("record", record);
    16711671        }
Note: See TracChangeset for help on using the changeset viewer.