Here you can find the source of assertTwoParameters(Class clz, String method, double... args)
public static void assertTwoParameters(Class clz, String method, double... args)
//package com.java2s; public class Main { public static void assertTwoParameters(Class clz, String method, double... args) { if (args == null || args.length != 2) throw new IllegalArgumentException(clz.getName() + "." + method + "(...) is only supported for two parameters (got " + args.length + ")"); }/* w ww. jav a 2 s .co m*/ }