Ignore:
Timestamp:
2013-10-07T00:04:48+02:00 (11 years ago)
Author:
Don-vip
Message:

Sonar/FindBugs - Nested blocks of code should not be left empty

File:
1 edited

Legend:

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

    r5801 r6310  
    88import java.util.Arrays;
    99
     10import org.openstreetmap.josm.Main;
    1011import org.openstreetmap.josm.data.osm.Node;
    1112import org.openstreetmap.josm.data.osm.OsmPrimitive;
     
    137138            /* if we have a "width" tag, try use it */
    138139            String widthTag = env.osm.get("width");
    139             if(widthTag == null) {
     140            if (widthTag == null) {
    140141                widthTag = env.osm.get("est_width");
    141142            }
    142             if(widthTag != null) {
     143            if (widthTag != null) {
    143144                try {
    144145                    realWidth = Float.valueOf(widthTag);
    145                 }
    146                 catch(NumberFormatException nfe) {
     146                } catch(NumberFormatException nfe) {
     147                    Main.warn(nfe);
    147148                }
    148149            }
Note: See TracChangeset for help on using the changeset viewer.