This is an automated email from the ASF dual-hosted git repository.
rsivaram pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/kafka.git
The following commit(s) were added to refs/heads/trunk by this push:
new ac79d49 MINOR: Implement toString() in config validator classes
(#5401)
ac79d49 is described below
commit ac79d4904797aad99b9481b4e34789402b259664
Author: Manikumar Reddy O <[email protected]>
AuthorDate: Thu Aug 2 15:44:21 2018 +0530
MINOR: Implement toString() in config validator classes (#5401)
---
.../src/main/java/org/apache/kafka/common/config/ConfigDef.java | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git
a/clients/src/main/java/org/apache/kafka/common/config/ConfigDef.java
b/clients/src/main/java/org/apache/kafka/common/config/ConfigDef.java
index 12e467c..08ac125 100644
--- a/clients/src/main/java/org/apache/kafka/common/config/ConfigDef.java
+++ b/clients/src/main/java/org/apache/kafka/common/config/ConfigDef.java
@@ -950,6 +950,10 @@ public class ConfigDef {
throw new ConfigException(name, "null", "entry must be non
null");
}
}
+
+ public String toString() {
+ return "non-null string";
+ }
}
public static class CompositeValidator implements Validator {
@@ -1019,6 +1023,10 @@ public class ConfigDef {
throw new ConfigException(name, value, "String may not contain
control sequences but had the following ASCII chars: " +
Utils.join(foundIllegalCharacters, ", "));
}
}
+
+ public String toString() {
+ return "non-empty string without ISO control characters";
+ }
}
public static class ConfigKey {