Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

avoidCallsTo not working for internal classes #1313

Open
daniel-frak opened this issue Feb 28, 2024 · 0 comments
Open

avoidCallsTo not working for internal classes #1313

daniel-frak opened this issue Feb 28, 2024 · 0 comments

Comments

@daniel-frak
Copy link

Assuming I have a class structure like this:

public class MyClass {

  public someMethod1() {
    MyInternalClass.someMethod2();
  }

  private static class MyInternalClass {

    static void someMethod2() {
      // Do stuff
    }
  }
}

Then adding com.example.MyClass.MyInternalClass to avoidCallsTo should (I assume) prevent the MyInternalClass.someMethod2(); from being mutated, which is not what happens.

Granted, this is not a common setup but it currently seems to be the most reasonable solution to exclude complex logging code from mutation (and code coverage).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant