This is why I opened PR.

  1. ClassUtils.getAllInterfacesForClass does not return null.
  2. Even if the length of proxyInterfaces is 0, no error occurs in the loop. So I think that conditional statement is unnecessary.