[ 
https://issues.apache.org/jira/browse/HADOOP-18277?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17551343#comment-17551343
 ] 

fanshilun commented on HADOOP-18277:
------------------------------------

Hi, [~aajisaka] I think using org.apache.commons.beanutils.BeanUtils should 
also be allowed, what's your opinion?
{code:java}
assertNotNull(Whitebox.getInternalState(random, "stream")); 

modified as follows:
assertNotNull(BeanUtils.getProperty(random, "stream"));

{code}
I have read the help document of Guice, I found that the use of Guice needs to 
add some annotations, but these annotations are only useful for Juint Test, I 
personally feel that this is not a very good usage.

> Remove org.apache.hadoop.test#Whitebox Deprecated Annotation
> ------------------------------------------------------------
>
>                 Key: HADOOP-18277
>                 URL: https://issues.apache.org/jira/browse/HADOOP-18277
>             Project: Hadoop Common
>          Issue Type: Improvement
>            Reporter: fanshilun
>            Assignee: fanshilun
>            Priority: Minor
>
> org.apache.hadoop.test#Whitebox is marked as deprecated, I personally feel 
> that this is unnecessary, which leads to a large number of junit test code 
> appearing deprecated, and a large number of Warnings appear in the 
> compilation, I checked the code and think the deprecated mark is unreasonable.



--
This message was sent by Atlassian Jira
(v8.20.7#820007)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to