Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 815A3200C8F for ; Fri, 9 Jun 2017 11:39:26 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 7FD72160BC8; Fri, 9 Jun 2017 09:39:26 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id C6C7D160B9C for ; Fri, 9 Jun 2017 11:39:25 +0200 (CEST) Received: (qmail 28262 invoked by uid 500); 9 Jun 2017 09:39:25 -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 28253 invoked by uid 99); 9 Jun 2017 09:39:24 -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; Fri, 09 Jun 2017 09:39:24 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id BBE27DFE5C; Fri, 9 Jun 2017 09:39:24 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: britter@apache.org To: commits@commons.apache.org Date: Fri, 09 Jun 2017 09:39:24 -0000 Message-Id: X-Mailer: ASF-Git Admin Mailer Subject: [1/6] [lang] LANG-1334: Partically revert changes introduced in 7c19a1ff4c217f03c0be62baf1169d689f566825. [Forced Update!] archived-at: Fri, 09 Jun 2017 09:39:26 -0000 Repository: commons-lang Updated Branches: refs/heads/release 360198dfb -> 09043bfa6 (forced update) LANG-1334: Partically revert changes introduced in 7c19a1ff4c217f03c0be62baf1169d689f566825. Replacing the static constants in CharEncoding with computed values can cause compatibility issues, since compile time constants are inlined by the compiler. Project: http://git-wip-us.apache.org/repos/asf/commons-lang/repo Commit: http://git-wip-us.apache.org/repos/asf/commons-lang/commit/18e69247 Tree: http://git-wip-us.apache.org/repos/asf/commons-lang/tree/18e69247 Diff: http://git-wip-us.apache.org/repos/asf/commons-lang/diff/18e69247 Branch: refs/heads/release Commit: 18e692478dcf91fdceb9b9fdca7c61a1111d63aa Parents: b48043d Author: Benedikt Ritter Authored: Fri Jun 9 08:37:11 2017 +0200 Committer: Benedikt Ritter Committed: Fri Jun 9 08:37:11 2017 +0200 ---------------------------------------------------------------------- .../java/org/apache/commons/lang3/CharEncoding.java | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/commons-lang/blob/18e69247/src/main/java/org/apache/commons/lang3/CharEncoding.java ---------------------------------------------------------------------- diff --git a/src/main/java/org/apache/commons/lang3/CharEncoding.java b/src/main/java/org/apache/commons/lang3/CharEncoding.java index 634b3af..9f0d2e0 100644 --- a/src/main/java/org/apache/commons/lang3/CharEncoding.java +++ b/src/main/java/org/apache/commons/lang3/CharEncoding.java @@ -19,7 +19,6 @@ package org.apache.commons.lang3; import java.nio.charset.Charset; import java.nio.charset.IllegalCharsetNameException; -import java.nio.charset.StandardCharsets; /** *

Character encoding names required of every implementation of the Java platform.

@@ -33,7 +32,7 @@ import java.nio.charset.StandardCharsets; * * @see JRE character encoding names * @since 2.1 - * @deprecated Java 7 introduced {@link StandardCharsets}, which defines these constants as + * @deprecated Java 7 introduced {@link java.nio.charset.StandardCharsets}, which defines these constants as * {@link Charset} objects. Use {@link Charset#name()} to get the string values provided in this class. * This class will be removed in a future release. */ @@ -45,7 +44,7 @@ public class CharEncoding { * *

Every implementation of the Java platform is required to support this character encoding.

*/ - public static final String ISO_8859_1 = StandardCharsets.ISO_8859_1.name(); + public static final String ISO_8859_1 = "ISO-8859-1"; /** *

Seven-bit ASCII, also known as ISO646-US, also known as the Basic Latin block @@ -53,7 +52,7 @@ public class CharEncoding { * *

Every implementation of the Java platform is required to support this character encoding.

*/ - public static final String US_ASCII = StandardCharsets.US_ASCII.name(); + public static final String US_ASCII = "US-ASCII"; /** *

Sixteen-bit Unicode Transformation Format, byte order specified by a mandatory initial @@ -61,28 +60,28 @@ public class CharEncoding { * *

Every implementation of the Java platform is required to support this character encoding.

*/ - public static final String UTF_16 = StandardCharsets.UTF_16.name(); + public static final String UTF_16 = "UTF-16"; /** *

Sixteen-bit Unicode Transformation Format, big-endian byte order.

* *

Every implementation of the Java platform is required to support this character encoding.

*/ - public static final String UTF_16BE = StandardCharsets.UTF_16BE.name(); + public static final String UTF_16BE = "UTF-16BE"; /** *

Sixteen-bit Unicode Transformation Format, little-endian byte order.

* *

Every implementation of the Java platform is required to support this character encoding.

*/ - public static final String UTF_16LE = StandardCharsets.UTF_16LE.name(); + public static final String UTF_16LE = "UTF-16LE"; /** *

Eight-bit Unicode Transformation Format.

* *

Every implementation of the Java platform is required to support this character encoding.

*/ - public static final String UTF_8 = StandardCharsets.UTF_8.name(); + public static final String UTF_8 = "UTF-8"; /** *

Returns whether the named charset is supported.