chia7712 commented on code in PR #16990:
URL: https://github.com/apache/kafka/pull/16990#discussion_r1730326689


##########
clients/src/main/java/org/apache/kafka/common/security/oauthbearer/internals/secured/ConfigurationUtils.java:
##########
@@ -209,6 +209,19 @@ public String validateString(String name, boolean 
isRequired) throws ValidateExc
         return value;
     }
 
+    /**
+     * Validates that a value, if supplied, is a {@link Boolean}. If no value 
is present in the configuration, a
+     * default value of {@link Boolean#FALSE} is returned.
+     */
+    public Boolean validateBoolean(String name) {
+        Boolean value = get(name);
+
+        if (value != null)
+            return value;
+
+        return Boolean.FALSE;

Review Comment:
   the other methods take argument `boolean isRequired`. maybe this method 
should follow the pattern?



-- 
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: jira-unsubscr...@kafka.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to