-
Notifications
You must be signed in to change notification settings - Fork 28k
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
[MINOR][BUILD] Fix lint-java breaks in Java #17072
Conversation
@@ -153,7 +153,7 @@ public void writeTo(ByteBuffer buffer) { | |||
* | |||
* Unlike getBytes this will not create a copy the array if this is a slice. | |||
*/ | |||
public @Nonnull ByteBuffer getByteBuffer() { | |||
@Nonnull public ByteBuffer getByteBuffer() { |
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 disable ModifierOrder
for 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.
I haven't checked the tests. Maybe, let me wait for the test results before cc'ing someone. |
Test build #73480 has finished for PR 17072 at commit
|
f196744
to
666ffed
Compare
Test build #73481 has started for PR 17072 at commit |
retest this please |
Thank you, yes just last night I put together some changes to fix this too, because I added some problems when I changed to Java 8 syntax. Maybe you can apply https://github.com/srowen/spark/commit/fcc66a0a79399b81c08c17f93073a9635de90a95.patch to your branch to see if I got anything else? |
@@ -34,12 +34,12 @@ public void onEvent(SparkListenerEvent event) { } | |||
|
|||
@Override | |||
public final void onStageCompleted(SparkListenerStageCompleted stageCompleted) { | |||
onEvent(stageCompleted); | |||
onEvent(stageCompleted); |
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.
Yeah, the whole file is mis-indented. The first indent is still 4 spaces. I think you could fix that too if you like
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.
Ah, sure. Thank you. Let me address the comments and compare this to your work too.
Test build #73482 has finished for PR 17072 at commit
|
Test build #73485 has finished for PR 17072 at commit
|
Test build #73486 has finished for PR 17072 at commit
|
Thank you @srowen. |
What changes were proposed in this pull request?
This PR proposes to fix the lint-breaks as below:
How was this patch tested?
Manually via