commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From brit...@apache.org
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)
Date Thu, 07 May 2015 15:29:44 GMT
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 <pascalschumacher@gmx.net>
Authored: Tue May 5 23:38:35 2015 +0200
Committer: Pascal Schumacher <pascalschumacher@gmx.net>
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<Object> 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);


Mime
View raw message