HADOOP-18289. Remove WhiteBox in hadoop-kms module.#4433
HADOOP-18289. Remove WhiteBox in hadoop-kms module.#4433jojochuang merged 6 commits intoapache:trunkfrom
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.
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.
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.