-
Notifications
You must be signed in to change notification settings - Fork 9.2k
HADOOP-18289. Remove WhiteBox in hadoop-kms module. #4433
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
|
@aajisaka please help me review the code, thank you very much! |
|
💔 -1 overall
This message was automatically generated. |
|
💔 -1 overall
This message was automatically generated. |
| } | ||
|
|
||
| @Test | ||
| @SuppressWarnings("unchecked") |
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.
I add @SuppressWarnings("unchecked") in this position, it will not bring additional type conversion risk.
|
🎊 +1 overall
This message was automatically generated. |
|
🎊 +1 overall
This message was automatically generated. |
jojochuang
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.
It looks fine to me. I am not sure if it's a good idea to depend on Mockito's internal APIs.
To read a field, you can simply call Field.get(object) to get the value. Doesn't require dependency on Mockito's internal APIs.
Thanks for your suggestion, I will modify the code. |
|
🎊 +1 overall
This message was automatically generated. |
|
@jojochuang Please help me to review the code again, thank you very much! |
...n-project/hadoop-kms/src/test/java/org/apache/hadoop/crypto/key/kms/server/TestKMSAudit.java
Outdated
Show resolved
Hide resolved
|
+1 |
|
@jojochuang Thank you very much for your help reviewing the code! |
|
🎊 +1 overall
This message was automatically generated. |
Co-authored-by: slfan1989 <louj1988@@>
HADOOP-18289. Remove WhiteBox in hadoop-kms module.
WhiteBox is deprecated, try to remove this method in hadoop-kms.