Migrate Apache HttpCore Nio Output Buffer classes to Apache HttpCore 5.x
MSALMapping of specifically *OutputBuffer classes of Apache HttpCore 5.x from Apache HttpCore Nio 4.4.x.
org. openrewrite. apache. httpclient5. UpgradeApacheHttpCore_5_NioOutputBuffersmod run . --recipe= org. openrewrite. apache. httpclient5. UpgradeApacheHttpCore_5_NioOutputBuffersInstall it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.
Recipe list
It runs these recipes, in this order.
- Add comment to method invocations
- Change type
org.apache.http.nio.util.SharedOutputBuffertoorg.apache.hc.core5.http.nio.support.classic.SharedOutputBuffer - Adds offset and length arguments to the write method of SharedOutputBuffer
- Delete method argument 1 in methods
org.apache.hc.core5.http.nio.support.classic.SharedOutputBuffer <constructor>(int, org.apache.http.nio.IOControl, org.apache.http.nio.util.ByteBufferAllocator) - Delete method argument 1 in methods
org.apache.hc.core5.http.nio.support.classic.SharedOutputBuffer <constructor>(int, org.apache.http.nio.util.ByteBufferAllocator) - Add comment to method invocations
- Change method name
org.apache.hc.core5.http.nio.support.classic.SharedOutputBuffer available()tocapacity - Change method name
org.apache.hc.core5.http.nio.support.classic.SharedOutputBuffer close()toabort - Change method name
org.apache.hc.core5.http.nio.support.classic.SharedOutputBuffer shutdown()toabort - Add comment to method invocations
- Change type
org.apache.http.nio.util.ContentOutputBuffertoorg.apache.hc.core5.http.nio.support.classic.ContentOutputBuffer - Add comment to method invocations