Skip to content

Commit 13798c3

Browse files
committed
Call refresh by default in AbstractFileObject.onChange
1 parent 4177ecd commit 13798c3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/AbstractFileObject.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1759,13 +1759,13 @@ private void notifyParent(final FileName childName, final FileType newType) thro
17591759
/**
17601760
* Called when the type or content of this file changes.
17611761
* <p>
1762-
* This implementation does nothing.
1762+
* This implementation just calls `refresh`.
17631763
* </p>
17641764
*
17651765
* @throws Exception if an error occurs.
17661766
*/
17671767
protected void onChange() throws Exception {
1768-
// noop
1768+
this.refresh();
17691769
}
17701770

17711771
/**

0 commit comments

Comments
 (0)