Ignore:
Timestamp:
2013-04-16T19:57:43+02:00 (12 years ago)
Author:
Don-vip
Message:

see #8570, #7406 - I/O refactorization:

  • Move different file copy functions to Utils.copyFile (to be replaced later by Files.copy when switching to Java 7)
  • Replace all Utils.close(XXX) by Utils.close(Closeable) -> impacted plugins: commandline, mirrored_download, opendata, piclayer
  • Add new Utils.close(ZipFile)
  • Use of Utils.close almost everywhere
  • Javadoc fixes
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/tools/WikiReader.java

    r5868 r5874  
    44import java.io.BufferedReader;
    55import java.io.IOException;
    6 import java.io.InputStream;
    76import java.net.URL;
    87
     
    4140            return readNormal(in);
    4241        } finally {
    43             in.close();
     42            Utils.close(in);
    4443        }
    4544    }
     
    6362            return readFromTrac(in);
    6463        } finally {
    65             in.close();
     64            Utils.close(in);
    6665        }
    6766    }
Note: See TracChangeset for help on using the changeset viewer.