Return-Path: X-Original-To: apmail-commons-commits-archive@minotaur.apache.org Delivered-To: apmail-commons-commits-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 4037318BF3 for ; Tue, 14 Jul 2015 05:26:53 +0000 (UTC) Received: (qmail 8733 invoked by uid 500); 14 Jul 2015 05:26:53 -0000 Delivered-To: apmail-commons-commits-archive@commons.apache.org Received: (qmail 8656 invoked by uid 500); 14 Jul 2015 05:26:53 -0000 Mailing-List: contact commits-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@commons.apache.org Delivered-To: mailing list commits@commons.apache.org Received: (qmail 8647 invoked by uid 99); 14 Jul 2015 05:26:53 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 14 Jul 2015 05:26:53 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id E98F9E0523; Tue, 14 Jul 2015 05:26:52 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: chas@apache.org To: commits@commons.apache.org Message-Id: X-Mailer: ASF-Git Admin Mailer Subject: [lang] LANG-1075 - Deprecate SystemUtils.FILE_SEPARATOR and SystemUtils.PATH_SEPARATOR Date: Tue, 14 Jul 2015 05:26:52 +0000 (UTC) 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 Authored: Mon Jul 13 22:26:44 2015 -0700 Committer: Chas Honton 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 @@ + Deprecate SystemUtils.FILE_SEPARATOR and SystemUtils.PATH_SEPARATOR FastDateFormat APIs that use a StringBuilder Ability to throw checked exceptions without declaring them Several predefined ISO FastDateFormats in DateFormatUtils are incorrect 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. *

* + * @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. *

* + * @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"); /**