Advertisement
Guest User

Untitled

a guest
Mar 27th, 2015
191
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.91 KB | None | 0 0
  1. public class AttributeVisitor extends SimpleAnnotationValueVisitor8<Object, Object> {
  2.  
  3. public AttributeVisitor() {
  4. super();
  5. }
  6.  
  7. public AttributeVisitor(Object defaultValue) {
  8. super(defaultValue);
  9. }
  10.  
  11. @Override
  12. public Object visitEnumConstant(VariableElement c, Object attribute) {
  13. return super.visitEnumConstant(c, attribute);
  14. }
  15. }
  16.  
  17. for(Map.Entry<? extends ExecutableElement, ? extends AnnotationValue> mirrorValues: annotationMirror.getElementValues().entrySet()){
  18. mirrorValues.getValue().accept(new AttributeVisitor());
  19. }
  20.  
  21. method accept in interface javax.lang.model.element.AnnotationValue cannot be applied to given types;
  22. [ERROR] required: javax.lang.model.element.AnnotationValueVisitor<R,P>,P
  23. [ERROR] found: com.cvent.analytics.validator.AttributeVisitor
  24. [ERROR] reason: cannot infer type-variable(s) R,P
  25. [ERROR] (actual and formal argument lists differ in length)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement