You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@netbeans.apache.org by GitBox <gi...@apache.org> on 2019/12/06 07:41:52 UTC

[GitHub] [netbeans] mklaehn commented on a change in pull request #1693: [NETBEANS-3485] Fixed compiler warnings concerning rawtypes Enumerati…

mklaehn commented on a change in pull request #1693: [NETBEANS-3485] Fixed compiler warnings concerning rawtypes Enumerati…
URL: https://github.com/apache/netbeans/pull/1693#discussion_r354698595
 
 

 ##########
 File path: platform/core.netigso/test/unit/src/org/netbeans/core/netigso/NetigsoOSGiActivationVisibleTest.java
 ##########
 @@ -203,19 +203,19 @@ public void testResourcesFromModule() throws Exception {
 
     public void testResourcesDirectFromBundle() throws Exception {
         Method loadResource = directBundle.getMethod("loadResources", String.class, ClassLoader.class);
-        Enumeration res = (Enumeration) loadResource.invoke(null, "org/foo/Something.txt", null);
+        Enumeration<URL> res = (Enumeration<URL>) loadResource.invoke(null, "org/foo/Something.txt", null);
 
 Review comment:
   True.
   The aim of this PR was too get the number of rawtypes warnings concerning Enumeration reduced. In this project this resulted in fixing the rawtypes warning by adding an unchecked cast warning.
   This is also one of the reasons why I switched to fix as many (hopefully all) warnings in a single project.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For additional commands, e-mail: notifications-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists