Convert the method parameter from numeric type to duration

Apache 2.0

Convert the method parameter from numeric types to duration.

software.amazon.awssdk.v2migration.NumberToDuration

Required

A method pattern that is used to find matching method invocations.

Optional

The TimeUnit enum value to convert. Defaults to MILLISECONDS.

mod run . --recipe=software.amazon.awssdk.v2migration.NumberToDuration \ -P methodPattern='com.amazonaws.ClientConfiguration setRequestTimeout(int)'

Install it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.