lpavanvenkat opened a new pull request, #1719:
URL: https://github.com/apache/ratis/pull/1719

   ## What changes were proposed in this pull request?
   
   Added `@SuppressWarnings("varargs")` to all 21 `@SafeVarargs`-annotated 
methods in `ConfUtils.java`.
   
   `@SafeVarargs` suppresses the heap pollution warning at call sites but not 
at the declaration site. `@SuppressWarnings("varargs")` is needed to silence 
the following warning emitted at the declaration site:
   `Varargs method could cause heap pollution from non-reifiable varargs 
parameter assertions`
   
   ## What is the link to the Apache JIRA
   
   https://issues.apache.org/jira/browse/RATIS-2679
   
   ## How was this patch tested?
   
   No new tests required — annotation-only change with zero runtime effect. 
Existing test `TestConfUtils` passes: 6/6 tests, 0 failures.


-- 
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]

Reply via email to