reta commented on code in PR #992:
URL: https://github.com/apache/cxf/pull/992#discussion_r950927643
##########
rt/rs/description-swagger-ui/src/main/java/org/apache/cxf/jaxrs/swagger/ui/SwaggerUiConfig.java:
##########
@@ -260,6 +261,10 @@ public SwaggerUiConfig tryItOutEnabled(boolean tryItOut) {
}
public Boolean isQueryConfigEnabled() {
+ if (!Boolean.TRUE.equals(queryConfigEnabled) &&
!getConfigParameters().isEmpty()) {
Review Comment:
> An alternative would be in each setter
Thanks @awrb I think repetition is not as bad, it is still isolated to a
function call (and this is one of the reasons setters are there for, to have an
ability to introduce some hooks if necessary).
--
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]