[ 
https://issues.apache.org/jira/browse/NETBEANS-2616?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Brad Walker resolved NETBEANS-2616.
-----------------------------------
    Resolution: Fixed
      Assignee: Brad Walker

Fixed as part of change

https://github.com/apache/netbeans/commit/8f0da0b57f03751df5415c50bda4acd5dbc6c5b9

> remove usage of getURL() as it's deprecated
> -------------------------------------------
>
>                 Key: NETBEANS-2616
>                 URL: https://issues.apache.org/jira/browse/NETBEANS-2616
>             Project: NetBeans
>          Issue Type: Improvement
>            Reporter: Brad Walker
>            Assignee: Brad Walker
>            Priority: Major
>              Labels: pull-request-available
>          Time Spent: 0.5h
>  Remaining Estimate: 0h
>
> I've started trying to help the NetBeans community by making some 
> improvements that reduce build cruft.
> In particular, we are using getURL() and it's deprecated. Over ~ 160 
> deprecated messages are flagged as a result of it's usage..
> {quote}   [repeat] 
> /home/bwalker/netbeans-11.0/enterprise/websvc.core/src/org/netbeans/modules/websvc/core/jaxws/saas/RestResourceGenerator.java:130:
>  warning: [deprecation] getURL() in FileObject has been deprecated
>    [repeat]                     WsdlModeler wsdlModeler = 
> WsdlModelerFactory.getDefault().getWsdlModeler(localWsdl.getURL());
>    [repeat] 
> {quote}
> In looking at getURL() in FileObject.java it says to use toURL(). So that's 
> what I did..
> Once I made this change, I also had to cleanup a bunch of try-catch errors..
> {quote}   [repeat] 
> /home/bwalker/netbeans-11.0/enterprise/websvc.core/src/org/netbeans/modules/websvc/core/jaxws/nodes/JaxWsClientNode.java:451:
>  error: exception FileStateInvalidException is never thrown in body of 
> corresponding try statement
>    [repeat]             } catch (FileStateInvalidException ex) {
>    [repeat]               ^
>    [repeat] 
> /home/bwalker/netbeans-11.0/enterprise/websvc.core/src/org/netbeans/modules/websvc/core/jaxws/nodes/JaxWsClientNode.java:495:
>  error: exception FileStateInvalidException is never thrown in body of 
> corresponding try statement
>    [repeat]                 } catch (FileStateInvalidException ex) {
>    [repeat]
> {quote}
> This is becuase getURL() throws FileStateInvalidException exception but 
> toURL() does not.
>  
>  
>  
>  
>  



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org
For additional commands, e-mail: commits-h...@netbeans.apache.org

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

Reply via email to