com.newrelic.weave.violation.METHOD_MISSING_REQUIRED_ANNOTATIONS.md Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of newrelic-weaver Show documentation
Show all versions of newrelic-weaver Show documentation
The Weaver of the Java agent.
## METHOD_MISSING_REQUIRED_ANNOTATIONS ##
###Description###
This violation was raised because the original method is missing the annotations specied in the weave method.
###Example###
####Original Class####
```
public class Example {
@com.example.MethodAnnotation
public void foo() {
}
}
```
####Bad####
```
public class Example {
@WeaveWithAnnotation(annotationClasses = "@com.example.SomeOtherAnnotation")
public void foo() {
}
}
```
----------
####Good####
```
public class Example {
@WeaveWithAnnotation(annotationClasses = "com.example.MethodAnnotation")
public void foo() {
}
}
```
© 2015 - 2024 Weber Informatics LLC | Privacy Policy