Ticket #11193: OsmFileCacheTileLoader.java.patch

File OsmFileCacheTileLoader.java.patch, 1.1 KB (added by wiktorn, 10 years ago)

Overflow patch

  • src/org/openstreetmap/gui/jmapviewer/OsmFileCacheTileLoader.java

     
    5050
    5151    // Default expire time (i.e. maximum age of cached tile before refresh).
    5252    // Used when the server does not send an expires or max-age value in the http header.
    53     protected static final long DEFAULT_EXPIRE_TIME = 1000 * 60 * 60 * 24 * 7; // 7 days
     53    protected static final long DEFAULT_EXPIRE_TIME = 1000L * 60 * 60 * 24 * 7; // 7 days
    5454    // Limit for the max-age value send by the server.
    55     protected static final long EXPIRE_TIME_SERVER_LIMIT = 1000 * 60 * 60 * 24 * 28; // 4 weeks
     55    protected static final long EXPIRE_TIME_SERVER_LIMIT = 1000L * 60 * 60 * 24 * 28; // 4 weeks
    5656    // Absolute expire time limit. Cached tiles that are older will not be used,
    5757    // even if the refresh from the server fails.
    5858    protected static final long ABSOLUTE_EXPIRE_TIME_LIMIT = Long.MAX_VALUE; // unlimited