Ignore:
Timestamp:
2014-05-01T02:34:43+02:00 (10 years ago)
Author:
Don-vip
Message:

see #8465 - global use of try-with-resources, according to

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/actions/SessionLoadAction.java

    r7004 r7033  
    153153                        file = File.createTempFile("session_", ".joz", Utils.getJosmTempDir());
    154154                        tempFile = true;
    155                         FileOutputStream out = new FileOutputStream(file);
    156                         try {
     155                        try (FileOutputStream out = new FileOutputStream(file)) {
    157156                            Utils.copyStream(is, out);
    158                         } finally {
    159                             Utils.close(out);
    160157                        }
    161158                    }
Note: See TracChangeset for help on using the changeset viewer.