JCodeModel generates an import
statement in place of an import static
. For example I have a class that has import nz.co.cloudm.cloudserv.api.pojos.core.file.attachment.Attachment.Status
instead of import static nz.co.cloudm.cloudserv.api.pojos.core.file.attachment.Attachment.Status
so the compiler throws an error. The class Status
is an inner enum that lives in the Attachment
class as you can see in the import statement.
Do you know any way I can achieve an import static using code model?
Or otherwise how make the member to use the class qualified name?
private nz.co.cloudm.cloudserv.api.pojos.core.file.attachment.Attachment.Status status;