-
Notifications
You must be signed in to change notification settings - Fork 9.2k
HADOOP-17970. unguava: remove Preconditions from hdfs-projects modules #3566
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
Conversation
|
💔 -1 overall
This message was automatically generated. |
fe79eb3 to
ed0c8aa
Compare
ed0c8aa to
e96b2ac
Compare
|
💔 -1 overall
This message was automatically generated. |
|
💔 -1 overall
This message was automatically generated. |
@virajjasani , Can you please take a look at the changes? |
virajjasani
left a comment
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.
+1 (non-binding)
|
Thanks @virajjasani |
|
@amahussein you shouldn't merge your own patch before getting binding +1 |
aajisaka
left a comment
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.
My late +1, thank you @amahussein and @virajjasani
Description of PR
Replace
guava.Preconditionsin folderhadoop-hdfs-projectwithhadoop.util.PreconditionsHow was this patch tested?
Ran the tests locally
For code changes:
checkPositionIndex. Since there were only 4 occurrences I preferred to inline them in the code. The tradeoff is a slight change of behavior as guava.Preconditions.checkPositionIndex may throwIllegalArgumentException, while the inlined version only throwsIndexOutOfBoundsException