Skip to content
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

Fix deprecations, avoid @Inject #103

Merged
merged 1 commit into from
Jan 18, 2024
Merged

Conversation

jglick
Copy link
Member

@jglick jglick commented Jan 16, 2024

Cleanup after #102.

@jglick jglick requested a review from a team as a code owner January 16, 2024 22:01
@jglick jglick added the chore label Jan 16, 2024
@Inject private transient LibraryStep step;
@StepContextParameter private transient Run<?,?> run;
@StepContextParameter private transient TaskListener listener;
private transient final LibraryStep step;
Copy link
Member Author

Choose a reason for hiding this comment

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

Somewhat oxymoronic field modifiers, but a SynchronousNonBlockingStepExecution is never usefully serialized so it makes no difference.


private static final long serialVersionUID = 1L;

@Inject private transient ResourceStep step;
private transient final ResourceStep step;
Copy link
Member Author

Choose a reason for hiding this comment

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

Similarly, a SynchronousStepExecution should never be serialized at all.

@jglick jglick merged commit 0c6467c into jenkinsci:master Jan 18, 2024
14 checks passed
@jglick jglick deleted the lethal-injection branch January 18, 2024 15:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants