Skip to content

Conversation

@jglick
Copy link
Member

@jglick jglick commented May 7, 2021

As proposed in #213 (comment), this completely removed the Guava dependency without adding anything in its place. Does not really make the code noticeably more complex. Continues #215. @basil @jtnord

@jglick jglick requested a review from daniel-beck May 7, 2021 20:25
public Function load(Class from) {
PARSE_METHODS = new ClassValue<Function>() {
@Override
public Function computeValue(Class<?> from) {
Copy link
Member Author

Choose a reason for hiding this comment

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

Not only simpler, but should fix a memory leak in the rare case that fromStapler is actually defined: #213 (comment)

@jglick
Copy link
Member Author

jglick commented May 7, 2021

Lightly tested: ran Jenkins with this version of Stapler, did various GUI stuff, watched

java -jar …/jenkins-cli.jar -s http://localhost:8080/jenkins/ tail-log -l FINE org.kohsuke.stapler.AbstractTearOff

@basil
Copy link
Member

basil commented May 7, 2021

Testing the incremental in jenkinsci/jenkins#5422. If it passes and this PR is merged and released, I'll mark that PR as ready to review so we can pick up this change from core.

@jglick jglick merged commit fcf95ad into jenkinsci:master May 8, 2021
@jglick jglick deleted the no-guava branch May 10, 2021 16:28
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