Skip to content

Commit 3e6015f

Browse files
committed
Call refresh by default in AbstractFileObject.onChange
1 parent 4b2e618 commit 3e6015f

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

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
@@ -1752,13 +1752,13 @@ private void notifyParent(final FileName childName, final FileType newType) thro
17521752
/**
17531753
* Called when the type or content of this file changes.
17541754
* <p>
1755-
* This implementation does nothing.
1755+
* This implementation just calls `refresh`.
17561756
* </p>
17571757
*
17581758
* @throws Exception if an error occurs.
17591759
*/
17601760
protected void onChange() throws Exception {
1761-
// noop
1761+
this.refresh();
17621762
}
17631763

17641764
/**

0 commit comments

Comments
 (0)