Closed zzmmff closed 8 months ago
Varargs methods are easy to misuse, especially in this context, because it isn't apparent that you should specify values. We can add an exception here to indicate that no argument has been supplied. We have tons of other places that also accept varargs but these lead on command execution to failures.
Bug Report
I set the cluster topology refresh options in my code
The code is wrong,because no param passed to the enableAdaptiveRefreshTrigger method.
The ClusterTopologyRefreshOptions::Builder::enableAdaptiveRefreshTrigger method souce code :
I think the method should throw IllegalArgumentException if I don't pass any param to the method. But enableAdaptiveRefreshTrigger method didn't work like this,if you don't pass any params to the method ,it wouldn't throw any exceptions (Like the case I mentioned).I think this is a bug
Current Behavior
throw IllegalArgumentException