Migrate Apache HttpCore Nio Input Buffer classes to Apache HttpCore 5.x
MSALMapping of specifically *InputBuffer classes of Apache HttpCore 5.x from Apache HttpCore Nio 4.4.x.
org. openrewrite. apache. httpclient5. UpgradeApacheHttpCore_5_NioInputBuffersmod run . --recipe= org. openrewrite. apache. httpclient5. UpgradeApacheHttpCore_5_NioInputBuffersInstall 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.SharedInputBuffertoorg.apache.hc.core5.http.nio.support.classic.SharedInputBuffer - Adds offset and length arguments to the read method of SharedInputBuffer
- Delete method argument 1 in methods
org.apache.hc.core5.http.nio.support.classic.SharedInputBuffer <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.SharedInputBuffer <constructor>(int, org.apache.http.nio.util.ByteBufferAllocator) - Add comment to method invocations
- Change method name
org.apache.hc.core5.http.nio.support.classic.SharedInputBuffer available()tocapacity - Change method name
org.apache.hc.core5.http.nio.support.classic.SharedInputBuffer close()tomarkEndStream - Change method name
org.apache.hc.core5.http.nio.support.classic.SharedInputBuffer shutdown()toabort - Add comment to method invocations
- Change type
org.apache.http.nio.util.ContentInputBuffertoorg.apache.hc.core5.http.nio.support.classic.ContentInputBuffer - Add comment to method invocations