/** * Check to make sure that the passed JavaClass is a valid super class (i.e., it does not create any cycles in the inheritance. * * @param aJavaClass */ protected void validateSupertype(JavaClass aJavaClass) throws InheritanceCycleException { if (!isValidSupertype(aJavaClass)) throw new InheritanceCycleException(this, aJavaClass); }