Ignore:
Timestamp:
2020-01-20T23:18:38+01:00 (5 years ago)
Author:
simon04
Message:

fix #18588, see #12235 - Comply with OSM Tile Usage Policy

Do not send no-cache headers unless hitting JDK-8146450

File:
1 edited

Legend:

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

    r15496 r15740  
    7171    }
    7272
    73     private static boolean isRunningJavaWebStart() {
    74         try {
    75             // See http://stackoverflow.com/a/16200769/2257172
    76             return Class.forName("javax.jnlp.ServiceManager") != null;
    77         } catch (ClassNotFoundException e) {
    78             return false;
    79         }
    80     }
    81 
    8273    /**
    8374     * Replies the report header (software and system info)
     
    129120            }
    130121            // Add WebStart package details if run from JNLP
    131             if (isRunningJavaWebStart()) {
     122            if (Utils.isRunningJavaWebStart()) {
    132123                String webStartDetails = platform.getWebStartPackageDetails();
    133124                if (webStartDetails != null) {
Note: See TracChangeset for help on using the changeset viewer.