Skip to content

World's most powerful open data catalog for building a high-performance, geo-distributed and federated metadata lake.

[Minor] Use config constant instead of hard coding numbers (#2218)

Justin Mclean57da06779f00
diff --git a/server-common/src/main/java/com/datastrato/gravitino/server/auth/KerberosConfig.java b/server-common/src/main/java/com/datastrato/gravitino/server/auth/KerberosConfig.java
index 3aa5315888..bb6bd779fb 100644
--- a/server-common/src/main/java/com/datastrato/gravitino/server/auth/KerberosConfig.java
+++ b/server-common/src/main/java/com/datastrato/gravitino/server/auth/KerberosConfig.java
@@ -17,7 +17,7 @@ public interface KerberosConfig extends Configs {
ConfigEntry<String> PRINCIPAL =
new ConfigBuilder(KERBEROS_CONFIG_PREFIX + "principal")
.doc("Indicates the Kerberos principal to be used for HTTP endpoint")
- .version("0.4.0")
+ .version(ConfigConstants.VERSION_0_4_0)
.stringConf()
.checkValue(StringUtils::isNotBlank, ConfigConstants.NOT_BLANK_ERROR_MSG)
.create();
@@ -25,7 +25,7 @@ public interface KerberosConfig extends Configs {
ConfigEntry<String> KEYTAB =
new ConfigBuilder(KERBEROS_CONFIG_PREFIX + "keytab")
.doc("Location of the keytab file with the credentials for the principal")
- .version("0.4.0")
+ .version(ConfigConstants.VERSION_0_4_0)
.stringConf()
.checkValue(StringUtils::isNotBlank, ConfigConstants.NOT_BLANK_ERROR_MSG)
.create();