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

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

Brad Walker created NETBEANS-2839:
-------------------------------------

             Summary: cleanup Class raw type..
                 Key: NETBEANS-2839
                 URL: https://issues.apache.org/jira/browse/NETBEANS-2839
             Project: NetBeans
          Issue Type: Bug
            Reporter: Brad Walker


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