-
Notifications
You must be signed in to change notification settings - Fork 0
Kafka 2140 improve code readability #1
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 all commits
2086328
e2aba43
e900d31
b44ba4b
7bbde81
c5ba74b
0882175
1d19702
9de4ff4
a47e1a0
1c2f8fa
4cdf00b
45d6511
7e3dfc9
8dbf257
43e5638
4b21d6a
a17be4f
b70f0e7
122e78b
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 |
|---|---|---|
|
|
@@ -37,9 +37,9 @@ object ControlledShutdownRequest extends Logging { | |
| } | ||
| } | ||
|
|
||
| case class ControlledShutdownRequest(val versionId: Short, | ||
| val correlationId: Int, | ||
| val brokerId: Int) | ||
| case class ControlledShutdownRequest(versionId: Short, | ||
|
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. These class of changes are good. I am guessing that val in a case class is redundant due to the public visibility of the constructor arguments even without the val?
Owner
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. Yes, exactly. |
||
| correlationId: Int, | ||
| brokerId: Int) | ||
| extends RequestOrResponse(Some(RequestKeys.ControlledShutdownKey)){ | ||
|
|
||
| def this(correlationId: Int, brokerId: Int) = | ||
|
|
@@ -74,4 +74,4 @@ case class ControlledShutdownRequest(val versionId: Short, | |
| controlledShutdownRequest.append("; BrokerId: " + brokerId) | ||
| controlledShutdownRequest.toString() | ||
| } | ||
| } | ||
| } | ||
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.
good catch :)
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.
Intellij helped me. :) Once we eliminate all the existing issues, I would like to configure
abideas part of the build (https://github.com/scala/scala-abide) so that they are prevented in the future.