[
https://issues.apache.org/jira/browse/LANG-819?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13452132#comment-13452132
]
Matt Benson commented on LANG-819:
----------------------------------
Do you have any kind of evidence to support your claim that this is a "common
idiom" on the order of an unspoken rule? Due to type erasure a change of this
type _ought_ to be drop-in compatible, but we'd need to be sure. That hurdle
cleared, I have no problem with this.
> EnumUtils.generateBitVector needs a "? extends"
> -----------------------------------------------
>
> Key: LANG-819
> URL: https://issues.apache.org/jira/browse/LANG-819
> Project: Commons Lang
> Issue Type: Bug
> Affects Versions: 3.0.1
> Reporter: Shevek
> Priority: Minor
>
> public static <E extends Enum<E>> long generateBitVector(Class<E>
> enumClass, Iterable<E> values) {
> Should be Iterable<? extends E>.
> This is because although no subclasses of E can exist, the "? extends" is a
> common idiom for marking the collection as readonly, or not "owned" by the
> current object.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira