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 2020/08/31 04:21:00 UTC

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

Brad Walker created NETBEANS-4755:
-------------------------------------

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


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