Changeset 24a1cf71 for core/java


Ignore:
Timestamp:
May 31, 2018 5:16:00 PM (2 years ago)
Author:
zzz <zzz@…>
Branches:
master
Children:
cee45e3
Parents:
481e2875
Message:

Console: Change Java 10 warning to Java 11,
since bionic uses 10

File:
1 edited

Legend:

Unmodified
Added
Removed
  • core/java/src/net/i2p/util/SystemVersion.java

    r481e2875 r24a1cf71  
    4747    private static final boolean _oneDotNine;
    4848    private static final boolean _oneDotTen;
     49    private static final boolean _oneDotEleven;
    4950    private static final int _androidSDK;
    5051
     
    9293            _oneDotNine = false;
    9394            _oneDotTen = false;
     95            _oneDotEleven = false;
    9496        } else {
    9597            String version = System.getProperty("java.version");
     
    103105            // Starting 2018, versions are YY.M, this works for that also
    104106            _oneDotTen = _oneDotNine && VersionComparator.comp(version, "1.10") >= 0;
     107            _oneDotEleven = _oneDotTen && VersionComparator.comp(version, "1.11") >= 0;
    105108        }
    106109    }
     
    218221    public static boolean isJava10() {
    219222        return _oneDotTen;
     223    }
     224
     225    /**
     226     *
     227     *  @return true if Java 11 or higher, false for Android.
     228     *  @since 0.9.35
     229     */
     230    public static boolean isJava11() {
     231        return _oneDotEleven;
    220232    }
    221233
     
    318330        System.out.println("Java 9   : " + isJava9());
    319331        System.out.println("Java 10  : " + isJava10());
     332        System.out.println("Java 11  : " + isJava11());
    320333        System.out.println("Android  : " + isAndroid());
    321334        if (isAndroid())
Note: See TracChangeset for help on using the changeset viewer.