Ignore:
Timestamp:
2014-01-31T02:44:56+01:00 (10 years ago)
Author:
Don-vip
Message:

Sonar - fix various issues

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/preferences/projection/UTMProjectionChoice.java

    r6316 r6792  
    1616import javax.swing.JRadioButton;
    1717
     18import org.openstreetmap.josm.Main;
    1819import org.openstreetmap.josm.tools.GBC;
    1920
    2021public class UTMProjectionChoice extends ListProjectionChoice {
    2122
    22     public enum Hemisphere { North, South }
     23    /** Earth emispheres **/
     24    public enum Hemisphere {
     25        /** North emisphere */
     26        North,
     27        /** South emisphere */
     28        South
     29    }
    2330
    2431    private static final Hemisphere DEFAULT_HEMISPHERE = Hemisphere.North;
     
    129136                if(zoneval > 0 && zoneval <= 60)
    130137                    return Arrays.asList(zonestring, hemisphere.toString());
    131             } catch(NumberFormatException e) {}
     138            } catch(NumberFormatException e) {
     139                Main.warn(e);
     140            }
    132141        }
    133142        return null;
     
    158167        try {
    159168            return Integer.parseInt(zone) - 1;
    160         } catch(NumberFormatException e) {}
     169        } catch(NumberFormatException e) {
     170            Main.warn(e);
     171        }
    161172        return defaultIndex;
    162173    }
Note: See TracChangeset for help on using the changeset viewer.