reta commented on code in PR #992:
URL: https://github.com/apache/cxf/pull/992#discussion_r950898175


##########
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:
   @awrb this is a getter, which is not supposed to modify any other field, the 
`queryConfigEnabled` is 3 state property: `null`, `true`, `false`. We should 
only change this property implicitly when its value is not provided (means, it 
is `null`). If it is set to `true` or `false` already, we have to respect that.



-- 
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]

Reply via email to