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/CustomProjectionChoice.java

    r6070 r6295  
    4242    private String pref;
    4343
     44    /**
     45     * Constructs a new {@code CustomProjectionChoice}.
     46     */
    4447    public CustomProjectionChoice() {
    4548        super(tr("Custom Projection"), "core:custom");
     
    156159    public static class ParameterInfoDialog extends ExtendedDialog {
    157160
     161        /**
     162         * Constructs a new {@code ParameterInfoDialog}.
     163         */
    158164        public ParameterInfoDialog() {
    159165            super(null, tr("Parameter information"), new String[] { tr("Close") }, false);
     
    225231    @Override
    226232    public Collection<String> getPreferences(JPanel panel) {
     233        if (!(panel instanceof PreferencePanel)) {
     234            throw new IllegalArgumentException();
     235        }
    227236        PreferencePanel prefPanel = (PreferencePanel) panel;
    228237        String pref = prefPanel.input.getText();
Note: See TracChangeset for help on using the changeset viewer.