This is an automated email from the ASF dual-hosted git repository.
mikexue pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/incubator-eventmesh.git
The following commit(s) were added to refs/heads/develop by this push:
new fefe391 fix configuration property get error (#479)
fefe391 is described below
commit fefe391b078d919f4bcab47603ae4b1ca097f182
Author: Wenjun Ruan <[email protected]>
AuthorDate: Wed Aug 4 15:36:58 2021 +0800
fix configuration property get error (#479)
---
.../java/org/apache/eventmesh/common/config/ConfigurationWrapper.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git
a/eventmesh-common/src/main/java/org/apache/eventmesh/common/config/ConfigurationWrapper.java
b/eventmesh-common/src/main/java/org/apache/eventmesh/common/config/ConfigurationWrapper.java
index 084a888..c9e01d0 100644
---
a/eventmesh-common/src/main/java/org/apache/eventmesh/common/config/ConfigurationWrapper.java
+++
b/eventmesh-common/src/main/java/org/apache/eventmesh/common/config/ConfigurationWrapper.java
@@ -80,7 +80,7 @@ public class ConfigurationWrapper {
if (StringUtils.isEmpty(configValue)) {
return defaultValue;
}
- Preconditions.checkState(StringUtils.isNumeric(configKey),
String.format("%s error", configKey));
+ Preconditions.checkState(StringUtils.isNumeric(configValue),
String.format("key:%s, value:%s error", configKey, configValue));
return Integer.parseInt(configValue);
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]