Ignore:
Timestamp:
2015-06-02T16:40:38+02:00 (9 years ago)
Author:
Don-vip
Message:

remove extra whitespaces

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/actions/OrthogonalizeAction.java

    r8378 r8443  
    101101            try {
    102102                for (OsmPrimitive p : sel) {
    103                     if (! (p instanceof Node)) throw new InvalidUserInputException();
     103                    if (!(p instanceof Node)) throw new InvalidUserInputException();
    104104                    Node n = (Node) p;
    105105                    if (rememberMovements.containsKey(n)) {
    106106                        EastNorth tmp = rememberMovements.get(n);
    107                         commands.add(new MoveCommand(n, - tmp.east(), - tmp.north()));
     107                        commands.add(new MoveCommand(n, -tmp.east(), -tmp.north()));
    108108                        rememberMovements.remove(n);
    109109                    }
     
    299299        // rotate
    300300        for (Node n: allNodes) {
    301             EastNorth tmp = EN.rotateCC(pivot, n.getEastNorth(), - headingAll);
     301            EastNorth tmp = EN.rotateCC(pivot, n.getEastNorth(), -headingAll);
    302302            nX.put(n, tmp.east());
    303303            nY.put(n, tmp.north());
     
    328328                            Node n2 = w.way.getNodes().get(i+1);
    329329                            if (Arrays.asList(orientation).contains(w.segDirections[i])) {
    330                                 if (cs.contains(n1) && ! cs.contains(n2)) {
     330                                if (cs.contains(n1) && !cs.contains(n2)) {
    331331                                    cs.add(n2);
    332332                                    somethingHappened = true;
    333333                                }
    334                                 if (cs.contains(n2) && ! cs.contains(n1)) {
     334                                if (cs.contains(n2) && !cs.contains(n1)) {
    335335                                    cs.add(n1);
    336336                                    somethingHappened = true;
     
    468468            }
    469469            // rotate the vertical vector by 90 degrees (clockwise) and add it to the horizontal vector
    470             segSum = EN.sum(h, new EastNorth(v.north(), - v.east()));
     470            segSum = EN.sum(h, new EastNorth(v.north(), -v.east()));
    471471            //            if (EN.abs(segSum) < lh) throw new AssertionError();
    472472            this.heading = EN.polar(new EastNorth(0.,0.), segSum);
     
    505505            a -= 2 * Math.PI;
    506506        }
    507         while (a <= - Math.PI) {
     507        while (a <= -Math.PI) {
    508508            a += 2 * Math.PI;
    509509        }
Note: See TracChangeset for help on using the changeset viewer.