Preserve PropertyMapper null-passing behavior
ProprietarySpring Boot 4.0 changes the PropertyMapper behavior so that from() no longer calls to() when the source value is null. This recipe inserts .always() before terminal mapping methods to preserve the previous behavior. Chains that already contain .whenNonNull() or .alwaysApplyingWhenNonNull() are skipped, as they explicitly opted into null-skipping behavior which is now the default.
io. moderne. java. spring. boot4. InsertPropertyMapperAlwaysMethodInvocationmod run . --recipe= io. moderne. java. spring. boot4. InsertPropertyMapperAlwaysMethodInvocationInstall it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.