All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.newrelic.weave.violation.METHOD_MISSING_REQUIRED_ANNOTATIONS.md Maven / Gradle / Ivy

There is a newer version: 8.17.0
Show newest version
## 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