-
Notifications
You must be signed in to change notification settings - Fork 29.3k
[MINOR][BUILD] Fix lint-java breaks in Java #17072
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
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -34,12 +34,12 @@ public void onEvent(SparkListenerEvent event) { } | |
|
|
||
| @Override | ||
| public final void onStageCompleted(SparkListenerStageCompleted stageCompleted) { | ||
| onEvent(stageCompleted); | ||
| onEvent(stageCompleted); | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yeah, the whole file is mis-indented. The first indent is still 4 spaces. I think you could fix that too if you like
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Ah, sure. Thank you. Let me address the comments and compare this to your work too. |
||
| } | ||
|
|
||
| @Override | ||
| public final void onStageSubmitted(SparkListenerStageSubmitted stageSubmitted) { | ||
| onEvent(stageSubmitted); | ||
| onEvent(stageSubmitted); | ||
| } | ||
|
|
||
| @Override | ||
|
|
@@ -49,97 +49,98 @@ public final void onTaskStart(SparkListenerTaskStart taskStart) { | |
|
|
||
| @Override | ||
| public final void onTaskGettingResult(SparkListenerTaskGettingResult taskGettingResult) { | ||
| onEvent(taskGettingResult); | ||
| onEvent(taskGettingResult); | ||
| } | ||
|
|
||
| @Override | ||
| public final void onTaskEnd(SparkListenerTaskEnd taskEnd) { | ||
| onEvent(taskEnd); | ||
| onEvent(taskEnd); | ||
| } | ||
|
|
||
| @Override | ||
| public final void onJobStart(SparkListenerJobStart jobStart) { | ||
| onEvent(jobStart); | ||
| onEvent(jobStart); | ||
| } | ||
|
|
||
| @Override | ||
| public final void onJobEnd(SparkListenerJobEnd jobEnd) { | ||
| onEvent(jobEnd); | ||
| onEvent(jobEnd); | ||
| } | ||
|
|
||
| @Override | ||
| public final void onEnvironmentUpdate(SparkListenerEnvironmentUpdate environmentUpdate) { | ||
| onEvent(environmentUpdate); | ||
| onEvent(environmentUpdate); | ||
| } | ||
|
|
||
| @Override | ||
| public final void onBlockManagerAdded(SparkListenerBlockManagerAdded blockManagerAdded) { | ||
| onEvent(blockManagerAdded); | ||
| onEvent(blockManagerAdded); | ||
| } | ||
|
|
||
| @Override | ||
| public final void onBlockManagerRemoved(SparkListenerBlockManagerRemoved blockManagerRemoved) { | ||
| onEvent(blockManagerRemoved); | ||
| onEvent(blockManagerRemoved); | ||
| } | ||
|
|
||
| @Override | ||
| public final void onUnpersistRDD(SparkListenerUnpersistRDD unpersistRDD) { | ||
| onEvent(unpersistRDD); | ||
| onEvent(unpersistRDD); | ||
| } | ||
|
|
||
| @Override | ||
| public final void onApplicationStart(SparkListenerApplicationStart applicationStart) { | ||
| onEvent(applicationStart); | ||
| onEvent(applicationStart); | ||
| } | ||
|
|
||
| @Override | ||
| public final void onApplicationEnd(SparkListenerApplicationEnd applicationEnd) { | ||
| onEvent(applicationEnd); | ||
| onEvent(applicationEnd); | ||
| } | ||
|
|
||
| @Override | ||
| public final void onExecutorMetricsUpdate( | ||
| SparkListenerExecutorMetricsUpdate executorMetricsUpdate) { | ||
| onEvent(executorMetricsUpdate); | ||
| SparkListenerExecutorMetricsUpdate executorMetricsUpdate) { | ||
| onEvent(executorMetricsUpdate); | ||
| } | ||
|
|
||
| @Override | ||
| public final void onExecutorAdded(SparkListenerExecutorAdded executorAdded) { | ||
| onEvent(executorAdded); | ||
| onEvent(executorAdded); | ||
| } | ||
|
|
||
| @Override | ||
| public final void onExecutorRemoved(SparkListenerExecutorRemoved executorRemoved) { | ||
| onEvent(executorRemoved); | ||
| onEvent(executorRemoved); | ||
| } | ||
|
|
||
| @Override | ||
| public final void onExecutorBlacklisted(SparkListenerExecutorBlacklisted executorBlacklisted) { | ||
| onEvent(executorBlacklisted); | ||
| onEvent(executorBlacklisted); | ||
| } | ||
|
|
||
| @Override | ||
| public final void onExecutorUnblacklisted(SparkListenerExecutorUnblacklisted executorUnblacklisted) { | ||
| onEvent(executorUnblacklisted); | ||
| public final void onExecutorUnblacklisted( | ||
| SparkListenerExecutorUnblacklisted executorUnblacklisted) { | ||
| onEvent(executorUnblacklisted); | ||
| } | ||
|
|
||
| @Override | ||
| public final void onNodeBlacklisted(SparkListenerNodeBlacklisted nodeBlacklisted) { | ||
| onEvent(nodeBlacklisted); | ||
| onEvent(nodeBlacklisted); | ||
| } | ||
|
|
||
| @Override | ||
| public final void onNodeUnblacklisted(SparkListenerNodeUnblacklisted nodeUnblacklisted) { | ||
| onEvent(nodeUnblacklisted); | ||
| onEvent(nodeUnblacklisted); | ||
| } | ||
|
|
||
| @Override | ||
| public void onBlockUpdated(SparkListenerBlockUpdated blockUpdated) { | ||
| onEvent(blockUpdated); | ||
| onEvent(blockUpdated); | ||
| } | ||
|
|
||
| @Override | ||
| public void onOtherEvent(SparkListenerEvent event) { | ||
| onEvent(event); | ||
| onEvent(event); | ||
| } | ||
| } | ||
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.
This seems actually a correct order but there is a bug in checkstyle. Please see
https://github.com/checkstyle/checkstyle/issues/903. I am willing to disableModifierOrderfor this method if anyone thinks so.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.
The compiler accepts it but I agree that annotations conventionally come before modifiers. They usually come on the line above.