To resolve union types, the inspector tries to find matching Java classes in the same package as the return type of the controller method for the union. However, if there is no sealed type or marker interface to return, the return type is likely Object. As a fallback, we can also try in the package of the controller.
To resolve union types, the inspector tries to find matching Java classes in the same package as the return type of the controller method for the union. However, if there is no sealed type or marker interface to return, the return type is likely
Object
. As a fallback, we can also try in the package of the controller.