Address deprecated URL instantiation

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

XMLWordPrintable

      Starting with Java 20, instantiating URLs via new URL is deprecated in favor of URI#toURL().

      While the project's codebase targets Java 11, we can address backwards-compatible deprecations still. The methods to use exist in Java 11 as well.

      The following occurrences are of concern: https://github.com/search?q=repo%3Ajenkinsci%2Fjenkins+%22new+URL%22+lang%3Ajava&type=code

      More information about the deprecation can be found in the javadocs and constructor deprecation.

            Assignee:
            Abhishek Maity
            Reporter:
            Alexander Brandes
            Archiver:
            Jenkins Service Account

              Created:
              Updated:
              Resolved:
              Archived: