Ignore:
Timestamp:
2014-10-04T17:41:26+02:00 (10 years ago)
Author:
Don-vip
Message:

fix various warnings

Location:
trunk/src/org/openstreetmap/josm/io
Files:
2 edited

Legend:

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

    r7392 r7596  
    4848    /**
    4949     * A batch importer is a file importer that prefers to read multiple files at the same time.
     50     * @return {@code true} if this importer is a batch importer
    5051     */
    5152    public boolean isBatchImporter() {
     
    5556    /**
    5657     * Needs to be implemented if isBatchImporter() returns false.
     58     * @param file file to import
     59     * @param progressMonitor progress monitor
     60     * @throws IOException if any I/O error occurs
     61     * @throws IllegalDataException if invalid data is read
    5762     */
    5863    public void importData(File file, ProgressMonitor progressMonitor) throws IOException, IllegalDataException {
     
    6267    /**
    6368     * Needs to be implemented if isBatchImporter() returns true.
     69     * @param files files to import
     70     * @param progressMonitor progress monitor
     71     * @throws IOException if any I/O error occurs
     72     * @throws IllegalDataException if invalid data is read
    6473     */
    6574    public void importData(List<File> files, ProgressMonitor progressMonitor) throws IOException, IllegalDataException {
  • trunk/src/org/openstreetmap/josm/io/NmeaReader.java

    r7518 r7596  
    33
    44import java.io.BufferedReader;
     5import java.io.IOException;
    56import java.io.InputStream;
    67import java.io.InputStreamReader;
     
    165166    }
    166167
    167     public NmeaReader(InputStream source) {
     168    public NmeaReader(InputStream source) throws IOException {
    168169
    169170        // create the data tree
     
    201202            data.tracks.add(new ImmutableGpxTrack(currentTrack, Collections.<String, Object>emptyMap()));
    202203
    203         } catch (Exception e) {
     204        } catch (IllegalDataException e) {
    204205            Main.warn(e);
    205206        }
Note: See TracChangeset for help on using the changeset viewer.