You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The problem is reported for methods with well-known annotations like org.junit.jupiter.api.BeforeEach, javax.validation.constraints.AssertTrue and com.fasterxml.jackson.annotation.JsonProperty
The reported methods are indeed not used directly by our code, but by a dependency, like JUnit 5 or Jackson. It seems crude to annotate every such method with @SuppressWarnings("UnusedMethod")
There is a similar problem with "Unused variable" reported for class members annotated with org.springframework.boot.test.mock.mockito.MockBean.