Add @Nullable to optional Spring web parameters

Proprietary

In Spring Boot 4, JSpecify's @Nullable annotation should be used to indicate that a parameter can be null. This recipe adds @Nullable to parameters annotated with @PathVariable(required = false) or @RequestParam(required = false) and removes the now-redundant required = false attribute.

io.moderne.java.spring.framework.NullableSpringWebParameters
mod run . --recipe=io.moderne.java.spring.framework.NullableSpringWebParameters

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