Polishing

Closes gh-33681
This commit is contained in:
Tran Ngoc Nhan
2024-10-11 00:26:20 +07:00
committed by Sébastien Deleuze
parent 5bcce17fd9
commit e191c34078
3 changed files with 6 additions and 5 deletions

View File

@@ -207,7 +207,7 @@ public class PrintingResultHandler implements ResultHandler {
protected void printModelAndView(@Nullable ModelAndView mav) throws Exception {
this.printer.printValue("View name", (mav != null) ? mav.getViewName() : null);
this.printer.printValue("View", (mav != null) ? mav.getView() : null);
if (mav == null || mav.getModel().size() == 0) {
if (mav == null || mav.getModel().isEmpty()) {
this.printer.printValue("Model", null);
}
else {