The JavaDoc for isAssignableFrom states :
Determines if the class or interface represented by this
{@code Class} object is either the same as, or is a superclass or
superinterface of, the class or interface represented by the specified
{@code Class} parameter.
x.isAssignableFrom(y) -> is x >= y ?
so in our check y should be the scanned controller class and x the ApiDocumentClass,
otherwise the current check will only exclude ApiDocumentClass or classes ApiDocumentClass extends
The JavaDoc for isAssignableFrom states : Determines if the class or interface represented by this
x.isAssignableFrom(y) -> is x >= y ? so in our check y should be the scanned controller class and x the ApiDocumentClass, otherwise the current check will only exclude ApiDocumentClass or classes ApiDocumentClass extends