slukyano commented on code in PR #5315:
URL: https://github.com/apache/ignite-3/pull/5315#discussion_r2000618198
##########
modules/cli/src/main/java/org/apache/ignite/internal/cli/commands/cluster/init/ClusterInitOptions.java:
##########
@@ -216,8 +216,8 @@ private DuplicatesChecker(String optionToCheck) {
}
private boolean hasDuplicate(List<String> args) {
- var arr = args.toArray(String[]::new);
- for (var str : arr) {
+ String[] arr = args.toArray(String[]::new);
Review Comment:
Wasn't looking at that, just fixed the var usage violation. Agree, the
DuplicatesChecker looks weird. I'd leave it as is, it works and it isn't on any
critical path - the first person who needs to really change it will surely
refactor it.
--
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]