code: static Class<?>[] getDeclaredClasses(final Class<?> c)
     {
        if (System.getSecurityManager() == null)
           return c.getDeclaredClasses();
  
        return AccessController.doPrivileged(new PrivilegedAction<Class<?>[]>()
        {
           public Class<?>[] run()
           {
              return c.getDeclaredClasses();
           }
        });
     }
docs: Get the declared classes
  @param c The class
  @return The classes