Skip to content

Remove usages of deprecated APIs#94

Merged
dwnusbaum merged 3 commits intojenkinsci:masterfrom
basil:deprecated
Aug 2, 2019
Merged

Remove usages of deprecated APIs#94
dwnusbaum merged 3 commits intojenkinsci:masterfrom
basil:deprecated

Conversation

@basil
Copy link
Copy Markdown
Member

@basil basil commented Jul 22, 2019

While perusing the source tree, I noticed a number of deprecated methods:

Accordingly, I replaced any calls to User.get(java.lang.String with calls to User.getById(java.lang.String, boolean, I replaced any usages of ACL.impersonate with usages of try-with-resources and ACL.as, and I replaced any usages of Jenkins.getInstance() with usages of JenkinsRule.jenkins.

@dwnusbaum dwnusbaum requested review from car-roll and dwnusbaum July 22, 2019 18:23
Copy link
Copy Markdown
Member

@dwnusbaum dwnusbaum left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@dwnusbaum dwnusbaum merged commit cc75dcf into jenkinsci:master Aug 2, 2019
@basil basil deleted the deprecated branch August 2, 2019 20:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants