Lines Matching defs:version
6 * under the terms of the GNU General Public License version 2 only, as
14 * version 2 for more details (a copy is included in the LICENSE file that
17 * You should have received a copy of the GNU General Public License version
44 static boolean isCurrentMacOSXVersion(final int version) {
45 return currentMacOSXVersionMatchesGivenVersionRange(version, true, false, false);
48 static boolean currentMacOSXVersionMatchesGivenVersionRange(final int version, final boolean inclusive, final boolean matchBelow, final boolean matchAbove) {
49 // split the "10.x.y" version number
50 String osVersion = System.getProperty("os.version");
53 // sanity check the "10." part of the version
57 // check if os.version matches the given version using the given match method
61 if (inclusive && minorVers == version) return true;
62 if (matchBelow && minorVers < version) return true;
63 if (matchAbove && minorVers > version) return true;