lbownik commented on code in PR #4265:
URL: https://github.com/apache/netbeans/pull/4265#discussion_r922622719


##########
enterprise/websvc.jaxwsmodel/src/org/netbeans/modules/websvc/api/jaxws/wsdlmodel/WsdlService.java:
##########
@@ -49,7 +51,7 @@ public WsdlService() {
     }
     
     public List<WsdlPort> getPorts() {
-        List wsdlPorts = new ArrayList();
+        List<WsdlPort> wsdlPorts = new ArrayList<>();

Review Comment:
   ho about rewriting this funtion into
   
   public List<WsdlPort> getPorts() {
           
           if (service==null) {
               return emptyList();
           } else {
               return 
service.getPorts().stream().map(WsdlPort::new).collect(toList());
           }
   }



-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

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

Reply via email to