Ignore:
Timestamp:
2015-05-09T12:49:35+02:00 (9 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/data/osm
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/data/osm/User.java

    r8155 r8342  
    228228        if (names.size() == 1) {
    229229            s.append(" name:").append(getName());
    230         }
    231         else if (names.size() > 1) {
     230        } else if (names.size() > 1) {
    232231            s.append(String.format(" %d names:%s", names.size(), getName()));
    233232        }
  • trunk/src/org/openstreetmap/josm/data/osm/visitor/paint/LineClip.java

    r7040 r8342  
    7272                accept = true;
    7373                done = true;
    74             }
    75             else if ( (outcode0 & outcode1) > 0 ) {
     74            } else if ( (outcode0 & outcode1) > 0 ) {
    7675                done = true;
    77             }
    78             else {
     76            } else {
    7977                long x = 0, y = 0;
    8078                outcodeOut = outcode0 != 0 ? outcode0: outcode1;
     
    8280                    x = x1 + (x2 - x1) * (ymax - y1)/(y2 - y1);
    8381                    y = ymax;
    84                 }
    85                 else if ((outcodeOut & OUT_BOTTOM) > 0 ) {
     82                } else if ((outcodeOut & OUT_BOTTOM) > 0 ) {
    8683                    x = x1 + (x2 - x1) * (ymin - y1)/(y2 - y1);
    8784                    y = ymin;
    88                 }
    89                 else if ((outcodeOut & OUT_RIGHT)> 0) {
     85                } else if ((outcodeOut & OUT_RIGHT)> 0) {
    9086                    y = y1 + (y2 - y1) * (xmax - x1)/(x2 - x1);
    9187                    x = xmax;
    92                 }
    93                 else if ((outcodeOut & OUT_LEFT) > 0) {
     88                } else if ((outcodeOut & OUT_LEFT) > 0) {
    9489                    y = y1 + (y2 - y1) * (xmin - x1)/(x2 - x1);
    9590                    x = xmin;
     
    124119        if (y > ymax) {
    125120            code |= OUT_TOP;
    126         }
    127         else if (y < ymin) {
     121        } else if (y < ymin) {
    128122            code |= OUT_BOTTOM;
    129123        }
    130124        if (x > xmax) {
    131125            code |= OUT_RIGHT;
    132         }
    133         else if (x < xmin) {
     126        } else if (x < xmin) {
    134127            code |= OUT_LEFT;
    135128        }
  • trunk/src/org/openstreetmap/josm/data/osm/visitor/paint/StyledMapRenderer.java

    r8318 r8342  
    946946
    947947        Node viaNode;
    948         if(via instanceof Node)
    949         {
     948        if(via instanceof Node) {
    950949            viaNode = (Node) via;
    951950            if(!fromWay.isFirstLastNode(viaNode))
    952951                return;
    953         }
    954         else
    955         {
     952        } else {
    956953            Way viaWay = (Way) via;
    957954            Node firstNode = viaWay.firstNode();
     
    960957
    961958            String onewayviastr = viaWay.get("oneway");
    962             if(onewayviastr != null)
    963             {
     959            if(onewayviastr != null) {
    964960                if("-1".equals(onewayviastr)) {
    965961                    onewayvia = true;
Note: See TracChangeset for help on using the changeset viewer.