LANG-1188: StringUtils#join(T...): warning: [unchecked] Possible heap pollution from parameterized vararg type T
fixed by adding @SafeVarargs
This commit is contained in:
parent
23108b1bd9
commit
d6644e4fbe
|
@ -46,6 +46,7 @@ The <action> type attribute can be add,update,fix,remove.
|
||||||
<body>
|
<body>
|
||||||
|
|
||||||
<release version="3.6" date="2016-MM-DD" description="TBD">
|
<release version="3.6" date="2016-MM-DD" description="TBD">
|
||||||
|
<action issue="LANG-1188" type="fix" dev="paschuma">StringUtils#join(T...): warning: [unchecked] Possible heap pollution from parameterized vararg type T</action>
|
||||||
<action issue="LANG-1144" type="fix" dev="ggregory" due-to="Waldemar Maier, Gary Gregory">Multiple calls of org.apache.commons.lang3.concurrent.LazyInitializer.initialize() are possible.</action>
|
<action issue="LANG-1144" type="fix" dev="ggregory" due-to="Waldemar Maier, Gary Gregory">Multiple calls of org.apache.commons.lang3.concurrent.LazyInitializer.initialize() are possible.</action>
|
||||||
<action issue="LANG-1276" type="fix" dev="pschumacher" due-to="Andy Klimczak">StrBuilder#replaceAll ArrayIndexOutOfBoundsException</action>
|
<action issue="LANG-1276" type="fix" dev="pschumacher" due-to="Andy Klimczak">StrBuilder#replaceAll ArrayIndexOutOfBoundsException</action>
|
||||||
<action issue="LANG-1278" type="fix" dev="pschumacher" due-to="Duke Yin">BooleanUtils javadoc issues</action>
|
<action issue="LANG-1278" type="fix" dev="pschumacher" due-to="Duke Yin">BooleanUtils javadoc issues</action>
|
||||||
|
|
|
@ -3753,6 +3753,7 @@ public class StringUtils {
|
||||||
* @since 2.0
|
* @since 2.0
|
||||||
* @since 3.0 Changed signature to use varargs
|
* @since 3.0 Changed signature to use varargs
|
||||||
*/
|
*/
|
||||||
|
@SafeVarargs
|
||||||
public static <T> String join(final T... elements) {
|
public static <T> String join(final T... elements) {
|
||||||
return join(elements, null);
|
return join(elements, null);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue