[ 
https://issues.apache.org/jira/browse/LANG-1188?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15312096#comment-15312096
 ] 

Sebb commented on LANG-1188:
----------------------------

We could start adding comments to state why the warning is not a problem (if 
indeed that is the case).
This means analysing the true cause of the warning, which will have to be done 
at some point anyway.

This would at least indicate to developers/maintainers/3rd parties that the 
warning has been taken into acount.

It's obviously important not to suppress the warning without first ensuring 
that the code is safe.

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

Reply via email to