com.newrelic.weave.violation.CLASS_WEAVE_IS_INTERFACE.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.
## CLASS_WEAVE_IS_INTERFACE ##
###Description###
This violation was raised because an @Weave annotation was found on the interface listed in the violation. @Weave annotations can only be applied to classes, not to interfaces.
###Example###
####Bad####
```
@Weave(type = MatchType.Interface)
public interface Example {
}
```
----------
####Good####
```
@Weave(type = MatchType.Interface)
public class Example {
}
```
© 2015 - 2024 Weber Informatics LLC | Privacy Policy