Changeset 6997 in josm for trunk/src/org/openstreetmap/josm


Ignore:
Timestamp:
2014-04-24T15:36:42+02:00 (10 years ago)
Author:
Don-vip
Message:

see #8465 - expiration date of java update feature

File:
1 edited

Legend:

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

    r6995 r6997  
    1616import java.net.URISyntaxException;
    1717import java.util.Arrays;
     18import java.util.Calendar;
    1819
    1920import javax.swing.JOptionPane;
     
    360361
    361362    protected void askUpdateJava(final String version, final String url) {
     363        // Expiration date of this feature around the expected release of our first Java 7 tested version
     364        Calendar today = Calendar.getInstance();
     365        Calendar expiration = Calendar.getInstance();
     366        expiration.set(2014, Calendar.MAY, 25);
     367        if (!today.before(expiration)) {
     368            return;
     369        }
    362370        GuiHelper.runInEDTAndWait(new Runnable() {
    363371            @Override
Note: See TracChangeset for help on using the changeset viewer.