Merge branch 'supress_compiler_warning'

@SuppressWarnings("deprecation") to joinWith, because it uses the deprecated
ObjectUtils.toString(Object) method (which is o.k. to use as long as
commons-lang3 does not require java 7 or greater). Thanks to
Pascal Schumacher.
This commit is contained in:
Benedikt Ritter 2015-05-07 17:26:59 +02:00
commit d864bbfb8f
1 changed files with 3 additions and 1 deletions

View File

@ -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);