Skip to content

Commit

Permalink
ZOOKEEPER-4007: A typo in the ZKUtil#validateFileInput method
Browse files Browse the repository at this point in the history
Author: fangxiao <benec.fx@gmail.com>

Reviewers: Enrico Olivelli <eolivelli@apache.org>,  maoling <maoling@apache.org>

Closes #1687 from benecdict-fang/ZOOKEEPER-4007
  • Loading branch information
benecdict-fang authored and maoling committed May 10, 2021
1 parent 96d87e2 commit f5c29aa
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ public static String validateFileInput(String filePath) {
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;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ public void testValidateFileInputDirectory() throws Exception {
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);
}

Expand Down

0 comments on commit f5c29aa

Please sign in to comment.