From 3e6015f442b119aa4a204fcc8cc48e1e867becae Mon Sep 17 00:00:00 2001 From: Boris Petrov Date: Tue, 15 Dec 2020 14:20:43 +0200 Subject: [PATCH] Call `refresh` by default in `AbstractFileObject.onChange` --- .../org/apache/commons/vfs2/provider/AbstractFileObject.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/AbstractFileObject.java b/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/AbstractFileObject.java index 6f66543589..03d0c13994 100644 --- a/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/AbstractFileObject.java +++ b/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/AbstractFileObject.java @@ -1752,13 +1752,13 @@ private void notifyParent(final FileName childName, final FileType newType) thro /** * Called when the type or content of this file changes. *

- * This implementation does nothing. + * This implementation just calls `refresh`. *

* * @throws Exception if an error occurs. */ protected void onChange() throws Exception { - // noop + this.refresh(); } /**