This is an automated email from the ASF dual-hosted git repository.
garydgregory pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-vfs.git
The following commit(s) were added to refs/heads/master by this push:
new 3794ee334 Add messages when throwing NullPointerException.
3794ee334 is described below
commit 3794ee334d4fead20453e7af1c1cf192cd6b346e
Author: Gary Gregory <[email protected]>
AuthorDate: Wed Jul 22 15:03:57 2026 -0400
Add messages when throwing NullPointerException.
---
.../src/main/java/org/apache/commons/vfs2/function/VfsConsumer.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git
a/commons-vfs2/src/main/java/org/apache/commons/vfs2/function/VfsConsumer.java
b/commons-vfs2/src/main/java/org/apache/commons/vfs2/function/VfsConsumer.java
index 5aeac7d62..c709adf49 100644
---
a/commons-vfs2/src/main/java/org/apache/commons/vfs2/function/VfsConsumer.java
+++
b/commons-vfs2/src/main/java/org/apache/commons/vfs2/function/VfsConsumer.java
@@ -49,7 +49,7 @@ public interface VfsConsumer<T> {
* @throws NullPointerException if {@code after} is null
*/
default VfsConsumer<T> andThen(final VfsConsumer<? super T> after) {
- Objects.requireNonNull(after);
+ Objects.requireNonNull(after, "after");
return (final T t) -> {
accept(t);
after.accept(t);