Skip to content

Remove usages of deprecated APIs #66

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 16, 2019
Merged

Conversation

basil
Copy link
Member

@basil basil commented Jul 22, 2019

While perusing the source tree, I noticed a deprecated method:

We always call getLabels() on the result, so the code assumes that the result is non-null. Therefore Jenkins.get() is more appropriate to use here rather than Jenkins.getInstanceOrNull(). So I changed the code to use Jenkins.get().

@rsandell rsandell merged commit be2bfbb into jenkinsci:master Aug 16, 2019
@basil basil deleted the deprecated branch August 19, 2019 17:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants