Polishing
Closes gh-33681
This commit is contained in:
committed by
Sébastien Deleuze
parent
5bcce17fd9
commit
e191c34078
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2002-2022 the original author or authors.
|
||||
* Copyright 2002-2024 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -65,7 +65,8 @@ public class ModelMethodProcessor implements HandlerMethodArgumentResolver, Hand
|
||||
if (returnValue == null) {
|
||||
return;
|
||||
}
|
||||
else if (returnValue instanceof Model model) {
|
||||
|
||||
if (returnValue instanceof Model model) {
|
||||
mavContainer.addAllAttributes(model.asMap());
|
||||
}
|
||||
else {
|
||||
|
||||
Reference in New Issue
Block a user