Ignore:
Timestamp:
2016-05-11T04:44:00+02:00 (8 years ago)
Author:
Don-vip
Message:

sonar - squid:S2184 - Math operands should be cast before assignment

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/data/validation/PaintVisitor.java

    r10009 r10181  
    141141    protected void drawSegment(Point p1, Point p2, Color color) {
    142142
    143         double t = Math.atan2(p2.x - p1.x, p2.y - p1.y);
     143        double t = Math.atan2((double) p2.x - p1.x, (double) p2.y - p1.y);
    144144        double cosT = 5 * Math.cos(t);
    145145        double sinT = 5 * Math.sin(t);
Note: See TracChangeset for help on using the changeset viewer.