Ignore:
Timestamp:
2015-05-09T12:49:35+02:00 (10 years ago)
Author:
Don-vip
Message:

code style - Close curly brace and the next "else", "catch" and "finally" keywords should be located on the same line

Location:
trunk/src/org/openstreetmap/josm/tools
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/tools/Diff.java

    r8285 r8342  
    764764                           or until the first nonprovisional at least 8 lines in.
    765765                           Until that point, cancel any provisionals.  */
    766                         for (j = 0, consec = 0; j < length; j++)
    767                         {
     766                        for (j = 0, consec = 0; j < length; j++) {
    768767                            if (j >= 8 && discards[i + j] == 1) {
    769768                                break;
     
    771770                            if (discards[i + j] == 2) {
    772771                                consec = 0; discards[i + j] = 0;
    773                             }
    774                             else if (discards[i + j] == 0) {
     772                            } else if (discards[i + j] == 0) {
    775773                                consec = 0;
    776774                            } else {
     
    786784
    787785                        /* Same thing, from end.  */
    788                         for (j = 0, consec = 0; j < length; j++)
    789                         {
     786                        for (j = 0, consec = 0; j < length; j++) {
    790787                            if (j >= 8 && discards[i - j] == 1) {
    791788                                break;
     
    793790                            if (discards[i - j] == 2) {
    794791                                consec = 0; discards[i - j] = 0;
    795                             }
    796                             else if (discards[i - j] == 0) {
     792                            } else if (discards[i - j] == 0) {
    797793                                consec = 0;
    798794                            } else {
  • trunk/src/org/openstreetmap/josm/tools/Geometry.java

    r8303 r8342  
    183183                                }
    184184                            }
    185                         }
    186                         else if (test && !intersectionNodes.isEmpty())
     185                        } else if (test && !intersectionNodes.isEmpty())
    187186                            return intersectionNodes;
    188187                    }
Note: See TracChangeset for help on using the changeset viewer.