You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@netbeans.apache.org by "ASF GitHub Bot (Jira)" <ji...@apache.org> on 2019/11/20 19:38:00 UTC
[jira] [Updated] (NETBEANS-3416) cleanup non-generic EMPTY_LIST
usage
[ https://issues.apache.org/jira/browse/NETBEANS-3416?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
ASF GitHub Bot updated NETBEANS-3416:
-------------------------------------
Labels: pull-request-available (was: )
> cleanup non-generic EMPTY_LIST usage
> ------------------------------------
>
> Key: NETBEANS-3416
> URL: https://issues.apache.org/jira/browse/NETBEANS-3416
> Project: NetBeans
> Issue Type: Improvement
> Reporter: Brad Walker
> Assignee: Brad Walker
> Priority: Major
> Labels: pull-request-available
>
> There are several places where EMPTY_LIST is used in a generic context..
> {code:java}
> [repeat] /home/bwalker/src/netbeans/platform/options.keymap/src/org/netbeans/modules/options/keymap/KeymapModel.java:658: warning: [unchecked] unchecked conversion
> [repeat] return Collections.EMPTY_SET;
> [repeat] ^
> [repeat] required: Collection<ShortcutAction>
> [repeat] found: Set
> {code}
> Convert this code to use the emptyList() method.. This will maintain type-safety and remove the warning..
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@netbeans.apache.org
For additional commands, e-mail: commits-help@netbeans.apache.org
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists