This is an automated email from the ASF dual-hosted git repository.
maoling pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/zookeeper.git
The following commit(s) were added to refs/heads/master by this push:
new f5c29aa ZOOKEEPER-4007: A typo in the ZKUtil#validateFileInput method
f5c29aa is described below
commit f5c29aab9adb49d9d3580074d4d1a805579fa20d
Author: fangxiao <[email protected]>
AuthorDate: Mon May 10 19:24:24 2021 +0800
ZOOKEEPER-4007: A typo in the ZKUtil#validateFileInput method
Author: fangxiao <[email protected]>
Reviewers: Enrico Olivelli <[email protected]>, maoling
<[email protected]>
Closes #1687 from benecdict-fang/ZOOKEEPER-4007
---
zookeeper-server/src/main/java/org/apache/zookeeper/ZKUtil.java | 2 +-
zookeeper-server/src/test/java/org/apache/zookeeper/ZKUtilTest.java | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/zookeeper-server/src/main/java/org/apache/zookeeper/ZKUtil.java
b/zookeeper-server/src/main/java/org/apache/zookeeper/ZKUtil.java
index 2e29cc7..fd35ae3 100644
--- a/zookeeper-server/src/main/java/org/apache/zookeeper/ZKUtil.java
+++ b/zookeeper-server/src/main/java/org/apache/zookeeper/ZKUtil.java
@@ -163,7 +163,7 @@ public class ZKUtil {
return "Read permission is denied on the file '" +
file.getAbsolutePath() + "'";
}
if (file.isDirectory()) {
- return "'" + file.getAbsolutePath() + "' is a direcory. it must be
a file.";
+ return "'" + file.getAbsolutePath() + "' is a directory. it must
be a file.";
}
return null;
}
diff --git
a/zookeeper-server/src/test/java/org/apache/zookeeper/ZKUtilTest.java
b/zookeeper-server/src/test/java/org/apache/zookeeper/ZKUtilTest.java
index 1904653..1111c2a 100644
--- a/zookeeper-server/src/test/java/org/apache/zookeeper/ZKUtilTest.java
+++ b/zookeeper-server/src/test/java/org/apache/zookeeper/ZKUtilTest.java
@@ -67,7 +67,7 @@ public class ZKUtilTest {
String absolutePath = file.getAbsolutePath();
String error = ZKUtil.validateFileInput(absolutePath);
assertNotNull(error);
- String expectedMessage = "'" + absolutePath + "' is a direcory. it
must be a file.";
+ String expectedMessage = "'" + absolutePath + "' is a directory. it
must be a file.";
assertEquals(expectedMessage, error);
}