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

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

There is a newer version: 8.17.0
Show newest version
## METHOD_NEW_NON_PRIVATE_UNSUPPORTED ##

###Description###

This violation was raised because the @Weave class contains a new method that is not declared private.

###Example###

####Original Class####
```
public class Example {

    public String exampleMethod() {
        return "example";
    }

}
```


####Bad####
```
@Weave
public class Example {

    // This needs to be private
    public String newMethod() {
        return "Some value";
    }

}
```




© 2015 - 2024 Weber Informatics LLC | Privacy Policy