Skip to content

Commit f003bf2

Browse files
committed
Call refresh by default in AbstractFileObject.onChange
1 parent 351ecfc commit f003bf2

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
@@ -1760,13 +1760,13 @@ private void notifyParent(final FileName childName, final FileType newType) thro
17601760
/**
17611761
* Called when the type or content of this file changes.
17621762
* <p>
1763-
* This implementation does nothing.
1763+
* This implementation just calls `refresh`.
17641764
* </p>
17651765
*
17661766
* @throws Exception if an error occurs.
17671767
*/
17681768
protected void onChange() throws Exception {
1769-
// noop
1769+
this.refresh();
17701770
}
17711771

17721772
/**

0 commit comments

Comments
 (0)