You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@netbeans.apache.org by "Brad Walker (Jira)" <ji...@apache.org> on 2021/09/02 12:46:00 UTC

[jira] [Closed] (NETBEANS-4755) remove use of deprecated API - getURL()

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

Brad Walker closed NETBEANS-4755.
---------------------------------
    Resolution: Fixed

fixed & integrated..

> remove use of deprecated API - getURL()
> ---------------------------------------
>
>                 Key: NETBEANS-4755
>                 URL: https://issues.apache.org/jira/browse/NETBEANS-4755
>             Project: NetBeans
>          Issue Type: Improvement
>            Reporter: Brad Walker
>            Assignee: Brad Walker
>            Priority: Major
>              Labels: pull-request-available
>          Time Spent: 2h 40m
>  Remaining Estimate: 0h
>
> Remove the use of a deprecated API, getURL()..
> {code:java}
>    [repeat] /home/bwalker/src/netbeans/platform/openide.loaders/src/org/openide/loaders/XMLDataObject.java:528: warning: [deprecation] getURL() in FileObject has been deprecated
>    [repeat]         String loc = getPrimaryFile().getURL().toExternalForm();
>    [repeat]                                      ^
> {code}
> In addition, this deprecated API never throws an exception. So once the change was made, also had to removed references to the unused exception.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

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

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