Add @Nullable to optional Spring web parameters
ProprietaryIn 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. NullableSpringWebParametersmod run . --recipe= io. moderne. java. spring. framework. NullableSpringWebParametersInstall it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.