Deprecate hudson.model.RunMap#getById(String) in favor of an int parameter version

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

XMLWordPrintable

      As discussed in https://github.com/jenkinsci/jenkins/pull/10456#discussion_r2010184507

      due to hudson.model.RunMap#getById(String) supporting String parameter it requires to catch NumberFormatException in there - and returning a null if it happens.

      Ideally this validation should have been already done by the caller, and ensure a number is sent instead of string.

      It is kept this way for historically id was a date-time format string.

      See https://github.com/jenkinsci/jenkins/commit/843d2387234080efc2fa86acdd52b3053cbd08dd#diff-95652fadfce64ddb3df4fd56881234fd266aaefed40628c190adc4298e597aadR194-R202

            Assignee:
            Unassigned
            Reporter:
            Guruprasad
            Archiver:
            Jenkins Service Account

              Created:
              Updated:
              Archived: