Ignore:
Timestamp:
2013-10-04T01:20:31+02:00 (11 years ago)
Author:
Don-vip
Message:

Sonar/Findbugs - fix various problems, javadoc

File:
1 edited

Legend:

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

    r6083 r6295  
    3333    }
    3434
     35    /**
     36     * Constructs a new {@code UTMProjectionChoice}.
     37     */
    3538    public UTMProjectionChoice() {
    3639        super(tr("UTM"), "core:utm", cbEntries.toArray(), tr("UTM Zone"));
     
    9699    @Override
    97100    public Collection<String> getPreferences(JPanel panel) {
     101        if (!(panel instanceof UTMPanel)) {
     102            throw new IllegalArgumentException();
     103        }
    98104        UTMPanel p = (UTMPanel) panel;
    99105        int index = p.prefcb.getSelectedIndex();
     
    133139        Hemisphere hemisphere = DEFAULT_HEMISPHERE;
    134140
    135         if(args != null) {
     141        if (args != null) {
    136142            String[] array = args.toArray(new String[args.size()]);
    137143
     
    155161        return defaultIndex;
    156162    }
    157 
    158163}
Note: See TracChangeset for help on using the changeset viewer.