lukaszlenart commented on code in PR #1072:
URL: https://github.com/apache/struts/pull/1072#discussion_r1798047410
##########
core/src/test/java/org/apache/struts2/interceptor/parameter/StrutsParameterAnnotationTest.java:
##########
@@ -343,6 +360,14 @@ public Map<String, Pojo> getPublicPojoMapDepthTwo() {
}
}
- class Pojo {
+ static class ModelAction implements ModelDriven<Pojo> {
Review Comment:
There is one more case where `ModelDriven<Object>` is used and then
`getModel()` can return conditional model, either a `List<Pojo>` or `Pojo`
itself. See [that
example](https://github.com/apache/struts-examples/blob/master/rest-angular/src/main/java/org/apache/examples/struts/actions/data/OrderController.java#L71-L80)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]