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/07/12 20:50:00 UTC

[jira] [Updated] (NETBEANS-2839) cleanup Class raw type..

     [ https://issues.apache.org/jira/browse/NETBEANS-2839?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

ASF GitHub Bot updated NETBEANS-2839:
-------------------------------------
    Labels: pull-request-available  (was: )

> cleanup Class raw type..
> ------------------------
>
>                 Key: NETBEANS-2839
>                 URL: https://issues.apache.org/jira/browse/NETBEANS-2839
>             Project: NetBeans
>          Issue Type: Bug
>            Reporter: Brad Walker
>            Priority: Major
>              Labels: pull-request-available
>
> There are a LOT of the following warnings in the build..
> {quote}   [repeat] /home/bwalker/netbeans/platform/openide.util/src/org/openide/util/NbPreferences.java:47: warning: [rawtypes] found raw type: Class
>    [repeat]     public static Preferences forModule(Class cls) {
>    [repeat]                                         ^
>    [repeat]   missing type arguments for generic class Class<T>
>    [repeat]   where T is a type-variable:
>    [repeat]     T extends Object declared in class Class{quote}
> So change the definition from Class to Class<?>.. 
> This should reduce the warning and catch anything "gross" coding wise. But, we really need to spend some time and trying to make this correct with a proper type..



--
This message was sent by Atlassian JIRA
(v7.6.14#76016)

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