Changeset 4082 in josm


Ignore:
Timestamp:
2011-05-15T16:23:17+02:00 (14 years ago)
Author:
bastiK
Message:

applied #6347 (patch by glebius) - WmsCache.java doesn't compile

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/data/imagery/WmsCache.java

    r4077 r4082  
    294294                    WmsCacheType.class.getClassLoader());
    295295            Marshaller marshaller = context.createMarshaller();
    296             marshaller.marshal(index, new File(cacheDir, INDEX_FILENAME));
    297         } catch (JAXBException e) {
     296            marshaller.marshal(index, new FileOutputStream(new File(cacheDir, INDEX_FILENAME)));
     297        } catch (Exception e) {
    298298            System.err.println("Failed to save wms-cache file");
    299299            e.printStackTrace();
    300300        }
    301 
    302301    }
    303302
Note: See TracChangeset for help on using the changeset viewer.