ivandasch commented on code in PR #10710:
URL: https://github.com/apache/ignite/pull/10710#discussion_r1195300133


##########
modules/core/src/main/java/org/apache/ignite/internal/management/AbstractCommandInvoker.java:
##########
@@ -102,11 +103,20 @@ protected <A extends IgniteDataTransferObject> A argument(
     ) throws InstantiationException, IllegalAccessException {
         A arg = argCls.newInstance();
 
-        AtomicBoolean oneOfSet = new AtomicBoolean(false);
+        AtomicBoolean onlyOneOfGrp = new AtomicBoolean();

Review Comment:
   May be it is better to create anonymous class that implements `Consumer` and 
has fields and set them approprieately?
   Atomics here look quite weird, tbh



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