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

Cleanup and modernization for RemoteClassLoader #376

Merged
merged 3 commits into from
Apr 20, 2020

Conversation

jeffret-b
Copy link
Contributor

Some simple modernization and cleanup for RemoteClassLoader. These changes are all refactorings with no change in behavior.

Once I get this approved and merged I've got a couple more cleanup PRs to process and then some actual improvements to RemoteClassLoader.

@jeffret-b jeffret-b added the chore For changelog: A maintenance chore with no functional changes label Apr 16, 2020
@jeffret-b jeffret-b requested a review from jvz April 16, 2020 21:07
@@ -322,7 +323,6 @@ ClassReference toRef(ClassFile2 cf) {
// but we need to remember to set the interrupt flag back on
// before we leave this call.
interrupted = true;
continue; // JENKINS-19453: retry
Copy link

Choose a reason for hiding this comment

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

Isn't this a behaviour change?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I don't think so. As IntelliJ says, "'continue' is unnecessary as the last statement in a loop ".

Because of the depth of the loops it's hard to read and the GH UI here doesn't make it any easier.

Copy link
Member

Choose a reason for hiding this comment

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

Looks like a redundant continue as it's the end of the block.

Copy link

Choose a reason for hiding this comment

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

Makes sense, thanks for the clarification!

@@ -322,7 +323,6 @@ ClassReference toRef(ClassFile2 cf) {
// but we need to remember to set the interrupt flag back on
// before we leave this call.
interrupted = true;
continue; // JENKINS-19453: retry
Copy link
Member

Choose a reason for hiding this comment

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

Looks like a redundant continue as it's the end of the block.

@jeffret-b jeffret-b merged commit 3a9b22c into jenkinsci:master Apr 20, 2020
@jeffret-b jeffret-b deleted the updateRCL branch April 20, 2020 16:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
chore For changelog: A maintenance chore with no functional changes ready-to-merge
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants