Find @Controller classes that use @SessionAttributes without calling setComplete()
ProprietaryFinds @Controller (or @RestController) classes annotated with @SessionAttributes whose body never calls SessionStatus.setComplete(). Without that call, session attributes declared by the controller are never cleared, leaking data across requests and eventually growing the session unbounded. A handler that finishes a workflow should inject a SessionStatus parameter and call sessionStatus.setComplete() before returning.
io. moderne. java. spring. framework. FindSessionAttributesWithoutSetCompletemod run . --recipe= io. moderne. java. spring. framework. FindSessionAttributesWithoutSetCompleteInstall it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.