for (int i = 0; i < type.length; i++) { for (int j = 0; j < targets.length; j++) { if (!type[i].isInstance(targets[j])) { String name = targets[j] == null ? "null" : targets[j].getClass().getName(); throw new IllegalArgumentException(name + " is not an instance of " + type[i].getName()); } } }
    public MulticastingInvoker(Class[] type, ProxyFactory proxyFactory, Object[] targets) {        this.types = type;        this.proxyFactory = proxyFactory;        this.targets = targets;        for (int i = 0; i < type.length; i++) {            for (int j = 0; j < targets.length; j++) {                if (!type[i].isInstance(targets[j])) {                    String name = targets[j] == null ? "null" : targets[j].getClass().getName();                    throw new IllegalArgumentException(name + " is not an instance of " + type[i].getName());                }            }        }    }