Skip to content

Commit

Permalink
small change (Orbiter's wish)
Browse files Browse the repository at this point in the history
git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@5971 6c8d7289-2bf4-0310-a012-ef5d649a1542
  • Loading branch information
borg-0300 committed May 21, 2009
1 parent e07b14e commit 47fce90
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions source/de/anomic/kelondro/index/RowSet.java
Expand Up @@ -96,11 +96,11 @@ public synchronized boolean has(final byte[] key) {
return index >= 0;
}

public Row.Entry get(final byte[] key) {
public synchronized Row.Entry get(final byte[] key) {
return get(key, 0, key.length);
}

private synchronized Row.Entry get(final byte[] key, final int astart, final int alength) {
private Row.Entry get(final byte[] key, final int astart, final int alength) {
final int index = find(key, astart, alength);
final Row.Entry entry = (index >= 0) ? get(index, true) : null;
return entry;
Expand Down Expand Up @@ -197,7 +197,7 @@ public final synchronized Row.Entry remove(final byte[] a) {
return entry;
}

private synchronized int find(final byte[] a, final int astart, final int alength) {
private int find(final byte[] a, final int astart, final int alength) {
// returns the chunknumber; -1 if not found

if (rowdef.objectOrder == null) return iterativeSearch(a, astart, alength, 0, this.chunkcount);
Expand Down

0 comments on commit 47fce90

Please sign in to comment.