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 2022/03/20 01:10:00 UTC

[GitHub] [netbeans] mbien commented on a change in pull request #3819: Cleanup a lot of warnings that deal with LinkedList raw types.

mbien commented on a change in pull request #3819:
URL: https://github.com/apache/netbeans/pull/3819#discussion_r830544776



##########
File path: enterprise/j2ee.ddloaders/src/org/netbeans/modules/j2ee/ddloaders/multiview/CmpFieldsNode.java
##########
@@ -89,7 +89,7 @@ public SectionNode getNodeForElement(Object element) {
             }
         } else if (element instanceof CmpField[]) {
             final List list1 = Arrays.asList(cmpFields.getCmpFields());
-            final List list2 = new LinkedList(Arrays.asList((CmpField[]) element));
+            final List list2 = new LinkedList<>(Arrays.asList((CmpField[]) element));

Review comment:
       hi brad. I noticed a few declarations don't have a generic type on the left hand side. Was it not easily possible to assign one without breaking things?




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

To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



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