Pass a boolean argument as a String

Proprietary

Pass a boolean argument as a String, for a parameter that changed type: a literal true becomes "true" and any other expression is wrapped in String.valueOf.

io.moderne.java.primefaces.ChangeBooleanArgumentToString

Required

A method pattern is used to find matching method invocations. For example, to find all method invocations in the Guava library, use the pattern: com.google.common..*#*(..).

The pattern format is <PACKAGE>#<METHOD_NAME>(<ARGS>).

..* includes all subpackages of com.google.common.
*(..) matches any method name with any number of arguments.

For more specific queries, like Guava's ImmutableMap, use com.google.common.collect.ImmutableMap#*(..) to narrow down the results.

A zero-based index of the boolean argument to pass as a String.

mod run . --recipe=io.moderne.java.primefaces.ChangeBooleanArgumentToString \ -P methodPattern='org.primefaces.component.datepicker.DatePickerBase setYearNavigator(boolean)' \ -P argumentIndex=0

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