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 3A37417550 for ; Thu, 7 May 2015 15:29:45 +0000 (UTC) Received: (qmail 60509 invoked by uid 500); 7 May 2015 15:29:45 -0000 Delivered-To: apmail-commons-commits-archive@commons.apache.org Received: (qmail 60442 invoked by uid 500); 7 May 2015 15:29:45 -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 60428 invoked by uid 99); 7 May 2015 15:29:45 -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; Thu, 07 May 2015 15:29:45 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id E2CF0E00B4; Thu, 7 May 2015 15:29:44 +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: Thu, 07 May 2015 15:29:44 -0000 Message-Id: <2ed7ffd6c88d4c28a18ee89ef6c4aab2@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: [1/2] [lang] add @SuppressWarnings(deprecation) in joinWith(), because it uses the deprecated ObjectUtils.toString(Object) method (which is o.k. to use as long as we do not require java 7 or greater) Repository: commons-lang Updated Branches: refs/heads/master d6dd2b4cd -> d864bbfb8 add @SuppressWarnings(deprecation) in joinWith(), because it uses the deprecated ObjectUtils.toString(Object) method (which is o.k. to use as long as we do not require java 7 or greater) Project: http://git-wip-us.apache.org/repos/asf/commons-lang/repo Commit: http://git-wip-us.apache.org/repos/asf/commons-lang/commit/82152f41 Tree: http://git-wip-us.apache.org/repos/asf/commons-lang/tree/82152f41 Diff: http://git-wip-us.apache.org/repos/asf/commons-lang/diff/82152f41 Branch: refs/heads/master Commit: 82152f41ac8a727c2f0042bd555452dc2dda11b1 Parents: d6dd2b4 Author: Pascal Schumacher Authored: Tue May 5 23:38:35 2015 +0200 Committer: Pascal Schumacher Committed: Wed May 6 21:44:41 2015 +0200 ---------------------------------------------------------------------- src/main/java/org/apache/commons/lang3/StringUtils.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/commons-lang/blob/82152f41/src/main/java/org/apache/commons/lang3/StringUtils.java ---------------------------------------------------------------------- diff --git a/src/main/java/org/apache/commons/lang3/StringUtils.java b/src/main/java/org/apache/commons/lang3/StringUtils.java index 55d8191..617361e 100644 --- a/src/main/java/org/apache/commons/lang3/StringUtils.java +++ b/src/main/java/org/apache/commons/lang3/StringUtils.java @@ -4207,7 +4207,9 @@ public class StringUtils { final Iterator iterator = Arrays.asList(objects).iterator(); while (iterator.hasNext()) { - result.append(ObjectUtils.toString(iterator.next())); + @SuppressWarnings("deprecation") // o.k. to use as long as we do not require java 7 or greater + final String value = ObjectUtils.toString(iterator.next()); + result.append(value); if (iterator.hasNext()) { result.append(sanitizedSeparator);