Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class AttributeVisitor extends SimpleAnnotationValueVisitor8<Object, Object> {
- public AttributeVisitor() {
- super();
- }
- public AttributeVisitor(Object defaultValue) {
- super(defaultValue);
- }
- @Override
- public Object visitEnumConstant(VariableElement c, Object attribute) {
- return super.visitEnumConstant(c, attribute);
- }
- }
- for(Map.Entry<? extends ExecutableElement, ? extends AnnotationValue> mirrorValues: annotationMirror.getElementValues().entrySet()){
- mirrorValues.getValue().accept(new AttributeVisitor());
- }
- method accept in interface javax.lang.model.element.AnnotationValue cannot be applied to given types;
- [ERROR] required: javax.lang.model.element.AnnotationValueVisitor<R,P>,P
- [ERROR] found: com.cvent.analytics.validator.AttributeVisitor
- [ERROR] reason: cannot infer type-variable(s) R,P
- [ERROR] (actual and formal argument lists differ in length)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement