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/10/26 19:15:41 UTC
[GitHub] [netbeans] mbien commented on a diff in pull request #4860: Cleanup raw type Iterator warnings..
mbien commented on code in PR #4860:
URL: https://github.com/apache/netbeans/pull/4860#discussion_r1006087659
##########
enterprise/j2eeserver/src/org/netbeans/modules/j2ee/deployment/config/ConfigSupportImpl.java:
##########
@@ -151,8 +152,8 @@ public static File[] getDeploymentConfigurationFiles (J2eeModuleProvider provide
public static FileObject[] getConfigurationFiles(J2eeModuleProvider jmp) {
Collection servers = ServerRegistry.getInstance().getServers();
- ArrayList files = new ArrayList();
- for (Iterator i=servers.iterator(); i.hasNext();) {
+ List files = new ArrayList<>();
Review Comment:
`List<FileObject>`
--
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