diff --git a/src/changes/changes.xml b/src/changes/changes.xml index baec0b8a0..b73f6bcba 100644 --- a/src/changes/changes.xml +++ b/src/changes/changes.xml @@ -46,6 +46,7 @@ The type attribute can be add,update,fix,remove. + StringUtils#join(T...): warning: [unchecked] Possible heap pollution from parameterized vararg type T Multiple calls of org.apache.commons.lang3.concurrent.LazyInitializer.initialize() are possible. StrBuilder#replaceAll ArrayIndexOutOfBoundsException BooleanUtils javadoc issues diff --git a/src/main/java/org/apache/commons/lang3/StringUtils.java b/src/main/java/org/apache/commons/lang3/StringUtils.java index ce2f92d1c..dba1a3a14 100644 --- a/src/main/java/org/apache/commons/lang3/StringUtils.java +++ b/src/main/java/org/apache/commons/lang3/StringUtils.java @@ -3753,6 +3753,7 @@ public class StringUtils { * @since 2.0 * @since 3.0 Changed signature to use varargs */ + @SafeVarargs public static String join(final T... elements) { return join(elements, null); }