The error shown when you perform clustering with an array of non unique names is pretty tough to track ...
I suggest to add a check for uniqueness on the arguments here using for instance a new Hashset initialized with the names and compare the size of the hashset with the size of the names array.
The error shown when you perform clustering with an array of non unique names is pretty tough to track ...
I suggest to add a check for uniqueness on the arguments here using for instance a new Hashset initialized with the names and compare the size of the hashset with the size of the names array.