public void handle(FieldInfo info, String annotationName) { if (annotationName == null || !"javax.servlet.annotation.WebListener".equals(annotationName)) return; LOG.warn( "@WebListener is not applicable to fields: " + info.getClassInfo().getClassName() + "." + info.getFieldName()); }
public void handle(FieldInfo info, String annotation) { if (annotation == null || !"org.eclipse.jetty.annotations.Sample".equals(annotation)) return; annotatedFields.add(info.getClassInfo().getClassName() + "." + info.getFieldName()); }