@@ -753,7 +753,8 @@ public static boolean fileContentEquals(final Path path1, final Path path2, fina
753753 * @param paths the array of files to apply the filter to.
754754 *
755755 * @return a subset of {@code files} that is accepted by the file filter.
756- * @throws IllegalArgumentException if the filter is {@code null} or {@code files} contains a {@code null} value.
756+ * @throws NullPointerException if the filter is {@code null}
757+ * @throws IllegalArgumentException if {@code files} contains a {@code null} value.
757758 *
758759 * @since 2.9.0
759760 */
@@ -1552,6 +1553,7 @@ static Set<FileVisitOption> toFileVisitOptionSet(final FileVisitOption... fileVi
15521553 * @return the given visitor.
15531554 *
15541555 * @throws IOException if an I/O error is thrown by a visitor method.
1556+ * @throws NullPointerException if the directory is {@code null}.
15551557 */
15561558 public static <T extends FileVisitor <? super Path >> T visitFileTree (final T visitor , final Path directory ) throws IOException {
15571559 requireExists (directory , "directory" );
@@ -1692,6 +1694,7 @@ private static <R> R withPosixFileAttributes(final Path path, final LinkOption[]
16921694 * @param openOptions options How to open the file.
16931695 * @return The given path.
16941696 * @throws IOException if an I/O error occurs writing to or creating the file.
1697+ * @throws NullPointerException if either {@code path} or {@code charSequence} is {@code null}.
16951698 * @since 2.12.0
16961699 */
16971700 public static Path writeString (final Path path , final CharSequence charSequence , final Charset charset , final OpenOption ... openOptions )
0 commit comments