Ignore:
Timestamp:
2016-05-15T16:37:33+02:00 (8 years ago)
Author:
Don-vip
Message:

findbugs - SF_SWITCH_NO_DEFAULT + various sonar fixes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/io/imagery/ImageryReader.java

    r10216 r10217  
    5454    }
    5555
     56    /**
     57     * Constructs a {@code ImageryReader} from a given filename, URL or internal resource.
     58     *
     59     * @param source can be:<ul>
     60     *  <li>relative or absolute file name</li>
     61     *  <li>{@code file:///SOME/FILE} the same as above</li>
     62     *  <li>{@code http://...} a URL. It will be cached on disk.</li>
     63     *  <li>{@code resource://SOME/FILE} file from the classpath (usually in the current *.jar)</li>
     64     *  <li>{@code josmdir://SOME/FILE} file inside josm user data directory (since r7058)</li>
     65     *  <li>{@code josmplugindir://SOME/FILE} file inside josm plugin directory (since r7834)</li></ul>
     66     */
    5667    public ImageryReader(String source) {
    5768        this.source = source;
    5869    }
    5970
     71    /**
     72     * Parses imagery source.
     73     * @return list of imagery info
     74     * @throws SAXException if any SAX error occurs
     75     * @throws IOException if any I/O error occurs
     76     */
    6077    public List<ImageryInfo> parse() throws SAXException, IOException {
    6178        Parser parser = new Parser();
     
    328345                        }
    329346                        break;
     347                    default: // Do nothing
    330348                    }
    331349                }
     
    456474                projections = null;
    457475                break;
    458             /* nothing to do for these or the unknown type:
    459476            case NO_TILE:
    460477            case NO_TILESUM:
    461478            case METADATA:
    462479            case UNKNOWN:
    463                 break;
    464             */
     480            default:
     481                // nothing to do for these or the unknown type
    465482            }
    466483        }
Note: See TracChangeset for help on using the changeset viewer.