--- old/src/java.base/share/classes/java/nio/file/DirectoryStream.java 2020-03-13 15:38:53.000000000 +0000 +++ new/src/java.base/share/classes/java/nio/file/DirectoryStream.java 2020-03-13 15:38:53.000000000 +0000 @@ -103,7 +103,7 @@ * result.add(entry); * } * } catch (DirectoryIteratorException ex) { - * // I/O error encounted during the iteration, the cause is an IOException + * // I/O error encountered during the iteration, the cause is an IOException * throw ex.getCause(); * } * return result;