Replace MockitoAnnotations.initMocks(this) to MockitoAnnotations.openMocks(this)
MSALReplace MockitoAnnotations.initMocks(this) to MockitoAnnotations.openMocks(this) and generate AutoCloseable mocks.
org. openrewrite. java. testing. mockito. ReplaceInitMockToOpenMockmod run . --recipe= org. openrewrite. java. testing. mockito. ReplaceInitMockToOpenMockInstall it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.