private void checkMethods() throws IntrospectionException { if(!addListenerMethod.getDeclaringClass().isAssignableFrom(removeListenerMethod.getDeclaringClass()) && !removeListenerMethod.getDeclaringClass().isAssignableFrom(addListenerMethod.getDeclaringClass())) { throw new IntrospectionException("add and remove listener methods do not come from the same class.  This is bad.");
private void checkMethods() throws IntrospectionException { if (!addListenerMethod.getDeclaringClass() .isAssignableFrom(removeListenerMethod.getDeclaringClass()) && !removeListenerMethod.getDeclaringClass() .isAssignableFrom(addListenerMethod.getDeclaringClass())) { throw new IntrospectionException( "add and remove listener methods do not come from the" + " same class.  This is bad.");
	private void checkMethods() throws IntrospectionException {		if(!addListenerMethod.getDeclaringClass().isAssignableFrom(removeListenerMethod.getDeclaringClass())		   && !removeListenerMethod.getDeclaringClass().isAssignableFrom(addListenerMethod.getDeclaringClass())) {			throw new IntrospectionException("add and remove listener methods do not come from the same class.  This is bad.");		}		if(!addListenerMethod.getReturnType().equals(java.lang.Void.TYPE)                   || addListenerMethod.getParameterTypes().length != 1		   || !listenerType.equals(addListenerMethod.getParameterTypes()[0])		   || !Modifier.isPublic(addListenerMethod.getModifiers())) {			throw new IntrospectionException("Add Listener Method invalid.");		}		if(!removeListenerMethod.getReturnType().equals(java.lang.Void.TYPE)                   || removeListenerMethod.getParameterTypes().length != 1		   || !listenerType.equals(removeListenerMethod.getParameterTypes()[0])		   || removeListenerMethod.getExceptionTypes().length > 0		   || !Modifier.isPublic(removeListenerMethod.getModifiers())) {			throw new IntrospectionException("Remove Listener Method invalid.");		}		for(int i=0;i<listenerMethods.length;i++) {			if(!listenerMethods[i].getReturnType().equals(java.lang.Void.TYPE)			   || Modifier.isPrivate(listenerMethods[i].getModifiers())) {				throw new IntrospectionException("Event Method " + listenerMethods[i].getName() + " non-void or private.");			}			if(!listenerMethods[i].getDeclaringClass().isAssignableFrom(listenerType)) {				throw new IntrospectionException("Event Method " + listenerMethods[i].getName() + " not from class " + listenerType.getName());			}		}	}