Preserve MockResponse return type for Dispatcher.dispatch() overrides
MSALIn mockwebserver3 5.x, Dispatcher.dispatch() returns MockResponse, not MockResponse.Builder. Pre-pin the return type to mockwebserver3.MockResponse and wrap return expressions with .build(), so the subsequent blanket MockResponse → Builder type change leaves dispatch() alone.
org. openrewrite. java. testing. junit5. UpdateMockWebServerDispatchermod run . --recipe= org. openrewrite. java. testing. junit5. UpdateMockWebServerDispatcherInstall it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.