Repository: commons-lang Updated Branches: refs/heads/master 61579335b -> fb7784fa1
LANG-1075 - Deprecate SystemUtils.FILE_SEPARATOR and SystemUtils.PATH_SEPARATOR Project: http://git-wip-us.apache.org/repos/asf/commons-lang/repo Commit: http://git-wip-us.apache.org/repos/asf/commons-lang/commit/fb7784fa Tree: http://git-wip-us.apache.org/repos/asf/commons-lang/tree/fb7784fa Diff: http://git-wip-us.apache.org/repos/asf/commons-lang/diff/fb7784fa Branch: refs/heads/master Commit: fb7784fa1472b4c55d329aacae672f416e11a703 Parents: 6157933 Author: Chas Honton <[email protected]> Authored: Mon Jul 13 22:26:44 2015 -0700 Committer: Chas Honton <[email protected]> Committed: Mon Jul 13 22:26:44 2015 -0700 ---------------------------------------------------------------------- src/changes/changes.xml | 1 + src/main/java/org/apache/commons/lang3/SystemUtils.java | 6 ++++++ 2 files changed, 7 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/commons-lang/blob/fb7784fa/src/changes/changes.xml ---------------------------------------------------------------------- diff --git a/src/changes/changes.xml b/src/changes/changes.xml index e6bd030..1271d5f 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-1075" type="update" dev="chas">Deprecate SystemUtils.FILE_SEPARATOR and SystemUtils.PATH_SEPARATOR</action> <action issue="LANG-1154" type="add" dev="chas" due-to="Gary Gregory">FastDateFormat APIs that use a StringBuilder</action> <action issue="LANG-1149" type="add" dev="chas" due-to="Gregory Zak">Ability to throw checked exceptions without declaring them</action> <action issue="LANG-1002" type="fix" dev="chas" due-to="Michael Osipov">Several predefined ISO FastDateFormats in DateFormatUtils are incorrect</action> http://git-wip-us.apache.org/repos/asf/commons-lang/blob/fb7784fa/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 527cf0e..8c6ab47 100644 --- a/src/main/java/org/apache/commons/lang3/SystemUtils.java +++ b/src/main/java/org/apache/commons/lang3/SystemUtils.java @@ -129,8 +129,11 @@ public class SystemUtils { * sync with that System property. * </p> * + * @deprecated Use {@link File#separator}, since it is guaranteed to be a + * string containing a single character and it does not require a privilege check. * @since Java 1.1 */ + @Deprecated public static final String FILE_SEPARATOR = getSystemProperty("file.separator"); /** @@ -733,8 +736,11 @@ public class SystemUtils { * sync with that System property. * </p> * + * @deprecated Use {@link File#pathSeparator}, since it is guaranteed to be a + * string containing a single character and it does not require a privilege check. * @since Java 1.1 */ + @Deprecated public static final String PATH_SEPARATOR = getSystemProperty("path.separator"); /**
