import java.lang.annotation.Retention;
import java.lang.annotation.Target;
import static java.lang.annotation.ElementType.FIELD;
import static java.lang.annotation.ElementType.METHOD;
import static java.lang.annotation.RetentionPolicy.RUNTIME;
// https://jakarta.ee/specifications/xml-binding/4.0/jakarta-xml-binding-spec-4.0#synopsis-17
@Retention(RUNTIME)
@Target({FIELD, METHOD}) // <-- the current document is missing this `)`
public @interface XmlElementWrapper {
String name() default "##default"; // name for XML element
String namespace() default "##default";
boolean nillable() default false;
boolean required() default false;
}
https://jakarta.ee/specifications/xml-binding/4.0/jakarta-xml-binding-spec-4.0#synopsis-17