Skip to content

Commit 94cccca

Browse files
committed
Override base method.
1 parent 4030681 commit 94cccca

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

core/src/main/java/ch/cyberduck/core/Collection.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -129,11 +129,12 @@ public void add(int row, E item) {
129129
this.collectionItemAdded(item);
130130
}
131131

132-
public void replace(int row, E item) {
133-
this.set(row, item);
132+
public E set(int row, E item) {
133+
final E previous = super.set(row, item);
134134
for(CollectionListener<E> listener : listeners) {
135135
listener.collectionItemChanged(item);
136136
}
137+
return previous;
137138
}
138139

139140
public void move(int from, int to) {

core/src/main/java/ch/cyberduck/core/MonitorFolderHostCollection.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ public void fileWritten(final Local file) {
6868
// Found bookmark with matching UUID
6969
if(new HostEditComparator().compare(bookmark, this.get(index)) != 0) {
7070
log.debug("Replace bookmark {} at index {}", bookmark, index);
71-
this.replace(index, bookmark);
71+
this.set(index, bookmark);
7272
}
7373
}
7474
}

0 commit comments

Comments
 (0)