Remove External API Deprecated Warnings

This issue is archived. You can view it, but you can't modify it. Learn more

XMLWordPrintable

    Role-based Authorization compile has nine (9) deprecated warnings arising from API external to this plugin:

    1. deprecated Jenkins.RUN_SCRIPTS field once
    2. deprecated PluginManager fields twice:
      • CONFIGURE_UPDATECENTER
      • UPLOAD_PLUGINS
    3. deprecated Jenkins.getInstance() method once
    4. deprecated Jenkins.getActiveInstance() method 5 times

    Proposed resolution:

    • @SuppressWarnings("deprecation") above field declaration resolved 1 and 2 above
    • Replace Jenkins.getInstance() with Jenkins.getInstanceOrNull() per JavaDoc.
    • Replace Jenkins.getActiveInstance() with Jenkins.get() per JavaDoc.

    Consider this a newbie contributor training exercise.

          Assignee:
          Conrad T. Pino
          Reporter:
          Conrad T. Pino
          Archiver:
          Jenkins Service Account

            Created:
            Updated:
            Resolved:
            Archived: