yzeng1618 commented on code in PR #11022:
URL: https://github.com/apache/seatunnel/pull/11022#discussion_r3378273105


##########
seatunnel-api/src/main/java/org/apache/seatunnel/api/configuration/util/OptionRule.java:
##########
@@ -345,7 +345,7 @@ public Builder optional(
                 @NonNull Option<?> option,
                 @NonNull Condition<?> condition1,
                 @NonNull Condition<?>... conditions) {
-            verifyOptionOptionsDuplicate(option, "OptionsOption");
+            verifyOptionOptionsDuplicate(option, 
"OptionsOptionWithConstraint");

Review Comment:
   It is recommended to define a private constant in the OptionRule 
class:private static final String TYPE_OPTION_WITH_CONSTRAINT = 
"OptionsOptionWithConstraint";



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