-
-
Notifications
You must be signed in to change notification settings - Fork 9k
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
IntelliJ/Java: Duplicate code -- Refactored as CLIReportUnexpectedExceptionHelper #4076
IntelliJ/Java: Duplicate code -- Refactored as CLIReportUnexpectedExceptionHelper #4076
Conversation
(This isn't ready, it's split so that it doesn't get lost) |
27e1325
to
ee2ec1e
Compare
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.
No need in a new class, it can be put to CLICommand directly. If there is a justification for such new public helper class, it should be documented properly and put to a new package (jenkins.cli or so)
@oleg-nenashev requested changes on Jul and there has been no activity since then, so I'm proposing for close. @jsoref please, if you are still interested in this PR, let me know so I can remove the label |
@fcojfernandez: Sorry, I think when I first worked on this I couldn't figure out how to get the other package to access the higher class. Here we go. |
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.
Whitespace got removed in this PR, IMHO it should be kept (consistency within file and with https://google.github.io/styleguide/javaguide.html#s4.6.2-horizontal-whitespace )
Co-Authored-By: Zbynek Konecny <[email protected]>
Not an API change if |
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.
@jsoref Could you maybe resolve the merge conflict? This seems close to be ready once the conflict is solved.
The conflicts are with #4641 which did something similar. I'll try to look at it over the weekend. |
The other PR mostly took care of other redundancy IIRC, these should nicely complement each other. |
@jsoref Could you please get back to us on this one? It seems it need a bit of work (build failures) but it seems good. Thanks. |
@varyvol: now I remember why I didn't push that. I hit the static issues that the build has now. The functions in question have lost |
@jsoref do you think you can move this PR forward or should we close it? Thanks. |
Adding the |
I really can't figure out a good way to resolve this and I don't have the cycles to poke it. |
This is for discussion.
Notes:
Proposed changelog entries
Internal:
Internal Java code cleanupSubmitter checklist
* Use the
Internal:
prefix if the change has no user-visible impact (API, test frameworks, etc.)Desired reviewers
@Wadeck