Uploaded image for project: 'NetBeans'
  1. NetBeans
  2. NETBEANS-4755

remove use of deprecated API - getURL()

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • None
    • None

    Description

      Remove the use of a deprecated API, getURL()..

         [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]                                      ^
      

      In addition, this deprecated API never throws an exception. So once the change was made, also had to removed references to the unused exception.

      Attachments

        Issue Links

          Activity

            People

              brad.walker Brad Walker
              brad.walker Brad Walker
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 2h 40m
                  2h 40m