com.newrelic.weave.violation.CLASS_NESTED_NONSTATIC_UNSUPPORTED.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_NESTED_NONSTATIC_UNSUPPORTED ##
###Description###
This violation was raised because the @Weave class is a non-static inner class. In order for an inner class to be weaved it must be static.
###Example###
####Original Class####
```
public class Example {
public class InnerExample {
}
}
```
####Bad####
```
@Weave
public class Example {
@Weave
public class InnerExample {
}
}
```
----------
####Good####
```
@Weave
public class Example {
@Weave
public static class InnerExample {
}
}
```
© 2015 - 2024 Weber Informatics LLC | Privacy Policy