Ignore:
Timestamp:
2014-04-29T16:38:07+02:00 (11 years ago)
Author:
Don-vip
Message:

fix more warnings, remove unused code

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

Legend:

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

    r7005 r7029  
    4343    }
    4444
    45     public void exportData(File file, Layer layer, boolean noBackup) throws IOException {
     45    public void exportData(File file, Layer layer, boolean noBackup) throws IllegalArgumentException {
    4646        if (layer instanceof OsmDataLayer) {
    4747            save(file, (OsmDataLayer) layer, noBackup);
  • trunk/src/org/openstreetmap/josm/io/session/GpxTracksSessionExporter.java

    r6552 r7029  
    179179    }
    180180
    181     protected void addDataFile(OutputStream out) throws IOException {
     181    protected void addDataFile(OutputStream out) {
    182182        Writer writer = new OutputStreamWriter(out, Utils.UTF_8);
    183183        GpxWriter w = new GpxWriter(new PrintWriter(writer));
  • trunk/src/org/openstreetmap/josm/io/session/MarkerSessionExporter.java

    r6552 r7029  
    1717import javax.swing.SwingConstants;
    1818
    19 import org.openstreetmap.josm.tools.Utils;
    20 import org.w3c.dom.Element;
    21 
    2219import org.openstreetmap.josm.Main;
    2320import org.openstreetmap.josm.data.gpx.GpxData;
     
    2825import org.openstreetmap.josm.io.session.SessionWriter.ExportSupport;
    2926import org.openstreetmap.josm.tools.GBC;
     27import org.openstreetmap.josm.tools.Utils;
     28import org.w3c.dom.Element;
    3029
    3130public class MarkerSessionExporter implements SessionLayerExporter {
     
    8584    }
    8685
    87     protected void addDataFile(OutputStream out) throws IOException {
     86    protected void addDataFile(OutputStream out) {
    8887        Writer writer = new OutputStreamWriter(out, Utils.UTF_8);
    8988        MarkerWriter w = new MarkerWriter(new PrintWriter(writer));
  • trunk/src/org/openstreetmap/josm/io/session/OsmDataSessionExporter.java

    r6890 r7029  
    3333import javax.swing.SwingConstants;
    3434
    35 import org.openstreetmap.josm.tools.Utils;
    36 import org.w3c.dom.Element;
    37 
    3835import org.openstreetmap.josm.actions.SaveAction;
    3936import org.openstreetmap.josm.gui.layer.Layer;
     
    4643import org.openstreetmap.josm.tools.GBC;
    4744import org.openstreetmap.josm.tools.ImageProvider;
     45import org.openstreetmap.josm.tools.Utils;
     46import org.w3c.dom.Element;
    4847
    4948public class OsmDataSessionExporter implements SessionLayerExporter {
     
    213212    }
    214213
    215     protected void addDataFile(OutputStream out) throws IOException {
     214    protected void addDataFile(OutputStream out) {
    216215        Writer writer = new OutputStreamWriter(out, Utils.UTF_8);
    217216        OsmWriter w = OsmWriterFactory.createOsmWriter(new PrintWriter(writer), false, layer.data.getVersion());
Note: See TracChangeset for help on using the changeset viewer.