raju-balpande opened a new pull request, #5872:
URL: https://github.com/apache/ozone/pull/5872

   ## What changes were proposed in this pull request?
   Add static import for assertions and mocks in hadoop-hdds/common.
   The goal of this task is to add import static for all assertions and 
interactions with mocks. Replacing:
   
   Assertions.assert<X>(...) -> assert<X>(...)
   Assertions.fail(...) -> fail(...)
   
   and
   
   Mockito.mock(...) -> mock(...)
   Mockito.verify(...) -> verify(...)
   Mockito.when(...) -> when(...)
   ...
   
   and
   
   ArgumentMatchers.any() -> any()
   ArgumentMatchers.eq() -> eq()
   ArgumentMatchers.matches() -> matches()
   // also:
   // Matchers.<...>()
   
   
   makes the code more readable (shorter lines, less wrapping).
   
   ## What is the link to the Apache JIRA
   https://issues.apache.org/jira/browse/HDDS-9973
   
   ## How was this patch tested?
   Tested on Ci pipeline.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


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

Reply via email to