-
-
Notifications
You must be signed in to change notification settings - Fork 275
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
Conversation
@@ -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 |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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.
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.