You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@netbeans.apache.org by "Brad Walker (Jira)" <ji...@apache.org> on 2019/11/22 19:36:00 UTC

[jira] [Closed] (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 ]

Brad Walker closed NETBEANS-3416.
---------------------------------
    Fix Version/s: 11.3
       Resolution: Fixed

fixed and merged..

> 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
>             Fix For: 11.3
>
>          Time Spent: 50m
>  Remaining Estimate: 0h
>
> 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