Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-48055

FindBugs: Channel#current() may return null, not all routines in the core handle that

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • core, remoting
    • None

      Remoting versions since 3.11 have explicit annotations for Channel#getCurrent(), and there are lots of FindBugs issues reported due to that. All usages are safe, so there is no need in backporting.

      My proposal is to...

      1) Add a convenience default method to Remoting's Callable, which throws IOException
      2) Use the new convenience method in all Callable implementations in the core

            oleg_nenashev Oleg Nenashev
            oleg_nenashev Oleg Nenashev
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: