You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Pascal Schumacher (JIRA)" <ji...@apache.org> on 2016/05/29 17:41:13 UTC
[jira] [Commented] (LANG-1188) lang3/StringUtils.java:3302:
warning: [unchecked] Possible heap pollution from parameterized vararg type
T
[ https://issues.apache.org/jira/browse/LANG-1188?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15306006#comment-15306006 ]
Pascal Schumacher commented on LANG-1188:
-----------------------------------------
Once commons-lang requires at least java 7 we can use @SafeVarargs, but for now I guess there is nothing we can do.
> lang3/StringUtils.java:3302: warning: [unchecked] Possible heap pollution from parameterized vararg type T
> ----------------------------------------------------------------------------------------------------------
>
> Key: LANG-1188
> URL: https://issues.apache.org/jira/browse/LANG-1188
> Project: Commons Lang
> Issue Type: Bug
> Components: lang.*
> Affects Versions: 3.4
> Environment: javac 1.8.0_25
> Reporter: Simon KRAMER
> Priority: Minor
> Original Estimate: 1h
> Remaining Estimate: 1h
>
> commons-lang3-3.4-src/src/main/java/org/apache/commons/lang3/StringUtils.java:3302: warning: [unchecked] Possible heap pollution from parameterized vararg type T
> public static <T> String join(final T... elements) {
> ^
> usage: String.join(" ", stringarray)
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)