-
Notifications
You must be signed in to change notification settings - Fork 6.3k
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 RocksJava Java code cosmetics #9204
Conversation
Specifically: - unused imports - code formatting - typos in comments - unnecessary casts - missing default label in switch statement - explicit use of long literals in multiplication - use generics where possible without backward compatibility risk
Sorry, I really don't get what the format check is complaining about. |
@stefan-zobel You can just run |
@@ -26,7 +26,7 @@ | |||
* @throws java.lang.IllegalArgumentException thrown on 32-Bit platforms | |||
* while overflowing the underlying platform specific value. | |||
*/ | |||
MutableColumnFamilyOptionsInterface setWriteBufferSize(long writeBufferSize); | |||
MutableColumnFamilyOptionsInterface<T> setWriteBufferSize(long writeBufferSize); |
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.
Why not just T
as per the other functions?
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.
@adamretter That sounds sensible. It just didn't occur to me.
|
I'll try again ... |
To no avail. Still format error and |
@stefan-zobel Could it be that you make an older version of the tools used by make format installed on your machine? The output from |
@adamretter |
Reopening on more time |
That hasn't been my experience, my experience is that it considers all my commits in a branch and offers to either amend the formats to the last commit or leave them staged so that I can create just a formatting commit |
@adamretter And it gets even more confusing when the format check nags about formatting errors in parts of the code where the formatting hasn't changed at all. |
Perhaps it is the case that somehow that code was committed before the formatting checks were introduced, now that you touch that area of the code the formatter complains within the context of your non-format related change? |
Sure. There is no other sensible explanation. By chance I've noticed one other place that wouldn't survive the format check if someone would change a single letter. It's just that I didn't expect that behavior. |
@stefan-zobel Did you mean to close this? |
Yes, why leave it open if no one seems to be interested? |
@stefan-zobel I don't think it is that no one is interested (there is clearly interest from myself above). |
@jay-zhuang has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator. |
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.
LGTM
@stefan-zobel has updated the pull request. You must reimport the pull request before landing. |
@jay-zhuang has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator. |
Specifically: