Changeset 12544 in josm


Ignore:
Timestamp:
2017-07-31T00:51:52+02:00 (3 months ago)
Author:
Don-vip
Message:

fix java warnings - Use grouping parenthesis to make the operator precedence explicit

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/mappaint/mapcss/Selector.java

    r12541 r12544  
    282282            public void visit(Node n) {
    283283                if (e.child == null && left.matches(new Environment(n).withParent(e.osm))
    284                     && (e.osm instanceof Way && Geometry.nodeInsidePolygon(n, ((Way) e.osm).getNodes()))
     284                    && ((e.osm instanceof Way && Geometry.nodeInsidePolygon(n, ((Way) e.osm).getNodes()))
    285285                            || (e.osm instanceof Relation && (
    286                                     (Relation) e.osm).isMultipolygon() && Geometry.isNodeInsideMultiPolygon(n, (Relation) e.osm, null))) {
     286                                    (Relation) e.osm).isMultipolygon() && Geometry.isNodeInsideMultiPolygon(n, (Relation) e.osm, null)))) {
    287287                    e.child = n;
    288288                }
     
    292292            public void visit(Way w) {
    293293                if (e.child == null && left.matches(new Environment(w).withParent(e.osm))
    294                     && (e.osm instanceof Way && Geometry.PolygonIntersection.FIRST_INSIDE_SECOND.equals(
     294                    && ((e.osm instanceof Way && Geometry.PolygonIntersection.FIRST_INSIDE_SECOND.equals(
    295295                            Geometry.polygonIntersection(w.getNodes(), ((Way) e.osm).getNodes())))
    296296                            || (e.osm instanceof Relation && (
    297297                                    (Relation) e.osm).isMultipolygon()
    298                                     && Geometry.isPolygonInsideMultiPolygon(w.getNodes(), (Relation) e.osm, null))) {
     298                                    && Geometry.isPolygonInsideMultiPolygon(w.getNodes(), (Relation) e.osm, null)))) {
    299299                    e.child = w;
    300300                }
Note: See TracChangeset for help on using the changeset viewer.