Repository: commons-lang Updated Branches: refs/heads/master 1e4a49067 -> 031f6b082
[LANG-1168] Add SystemUtils.IS_OS_WINDOWS_10 property. Project: http://git-wip-us.apache.org/repos/asf/commons-lang/repo Commit: http://git-wip-us.apache.org/repos/asf/commons-lang/commit/031f6b08 Tree: http://git-wip-us.apache.org/repos/asf/commons-lang/tree/031f6b08 Diff: http://git-wip-us.apache.org/repos/asf/commons-lang/diff/031f6b08 Branch: refs/heads/master Commit: 031f6b082ff21cf1138907a7c666d6ff391bfd72 Parents: 1e4a490 Author: ggregory <[email protected]> Authored: Fri May 20 10:24:35 2016 -0700 Committer: ggregory <[email protected]> Committed: Fri May 20 10:24:35 2016 -0700 ---------------------------------------------------------------------- src/changes/changes.xml | 1 + src/main/java/org/apache/commons/lang3/SystemUtils.java | 12 ++++++++++++ 2 files changed, 13 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/commons-lang/blob/031f6b08/src/changes/changes.xml ---------------------------------------------------------------------- diff --git a/src/changes/changes.xml b/src/changes/changes.xml index 40eaee4..034de39 100644 --- a/src/changes/changes.xml +++ b/src/changes/changes.xml @@ -22,6 +22,7 @@ <body> <release version="3.5" date="tba" description="tba"> + <action issue="LANG-1168" type="add" dev="pschumacher" due-to="pschumacher">Add SystemUtils.IS_OS_WINDOWS_10 property</action> <action issue="LANG-1232" type="fix" dev="pschumacher" due-to="Nick Manley">DiffBuilder: Add null check on fieldName when appending Object or Object[]</action> <action issue="LANG-1178" type="fix" dev="pschumacher" due-to="Henri Yandell">ArrayUtils.removeAll(Object array, int... indices) should do the clone, not its callers</action> <action issue="LANG-1151" type="update" dev="pschumacher" due-to="Juan Pablo Santos RodrÃguez">Performance improvements for NumberUtils.isParsable</action> http://git-wip-us.apache.org/repos/asf/commons-lang/blob/031f6b08/src/main/java/org/apache/commons/lang3/SystemUtils.java ---------------------------------------------------------------------- diff --git a/src/main/java/org/apache/commons/lang3/SystemUtils.java b/src/main/java/org/apache/commons/lang3/SystemUtils.java index c37f47d..ef1d43a 100644 --- a/src/main/java/org/apache/commons/lang3/SystemUtils.java +++ b/src/main/java/org/apache/commons/lang3/SystemUtils.java @@ -1436,6 +1436,18 @@ public class SystemUtils { /** * <p> + * Is {@code true} if this is Windows 10. + * </p> + * <p> + * The field will return {@code false} if {@code OS_NAME} is {@code null}. + * </p> + * + * @since 3.5 + */ + public static final boolean IS_OS_WINDOWS_10 = getOSMatchesName(OS_NAME_WINDOWS_PREFIX + " 10"); + + /** + * <p> * Is {@code true} if this is z/OS. * </p> * <p>
