better control of sortBound; should help to avoid an indexOutOfBound Exception

git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@3023 6c8d7289-2bf4-0310-a012-ef5d649a1542
pull/1/head
orbiter 18 years ago
parent 4ce590622f
commit 9dfae90da8

@ -361,17 +361,6 @@ public class kelondroRowCollection {
}
}
protected final void sort(kelondroOrder newOrder, int newColumn) {
if ((this.sortOrder == null) ||
(!(this.sortOrder.signature().equals(newOrder.signature()))) ||
(newColumn != this.sortColumn)) {
this.sortOrder = newOrder;
this.sortBound = 0;
this.sortColumn = newColumn;
}
sort();
}
protected final void sort() {
assert (this.sortOrder != null);
if (this.sortBound == this.chunkcount) return; // this is already sorted

@ -223,6 +223,7 @@ public class kelondroRowSet extends kelondroRowCollection implements kelondroInd
if ((this.sortOrder == null) ||
(!(this.sortOrder.signature().equals(newOrder.signature()))) ||
(newColumn != this.sortColumn)) {
resolveMarkedRemoved();
this.sortOrder = newOrder;
this.sortBound = 0;
this.sortColumn = newColumn;

Loading…
Cancel
Save