You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Bruno P. Kinoshita (JIRA)" <ji...@apache.org> on 2016/10/12 09:27:21 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=15568178#comment-15568178 ]
Bruno P. Kinoshita commented on LANG-1188:
------------------------------------------
+1 [~sebb@apache.org] for adding comments now in the code. Never used @SafeVarargs, but sounds like a good plan when we have >java 7 [~pascalschumacher]
> 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)