Skip to content

Commit

Permalink
quickfix
Browse files Browse the repository at this point in the history
git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@5841 6c8d7289-2bf4-0310-a012-ef5d649a1542
  • Loading branch information
orbiter committed Apr 20, 2009
1 parent 380ed2d commit 996572d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions source/de/anomic/kelondro/text/ReferenceContainer.java
Expand Up @@ -54,14 +54,14 @@ public class ReferenceContainer<ReferenceType extends Reference> extends RowSet

public ReferenceContainer(final ReferenceFactory<ReferenceType> factory, final byte[] termHash, final RowSet collection) {
super(collection);
assert termHash[2] != '@';
assert termHash == null || termHash[2] != '@';
this.factory = factory;
this.termHash = termHash;
}

public ReferenceContainer(final ReferenceFactory<ReferenceType> factory, final byte[] termHash, final Row rowdef, final int objectCount) {
super(rowdef, objectCount);
assert termHash[2] != '@';
assert termHash == null || termHash[2] != '@';
this.termHash = termHash;
this.factory = factory;
this.lastTimeWrote = 0;
Expand All @@ -74,12 +74,12 @@ public ReferenceContainer<ReferenceType> topLevelClone() {
}

public static <ReferenceType extends Reference> ReferenceContainer<ReferenceType> emptyContainer(final ReferenceFactory<ReferenceType> factory, final byte[] termHash, final int elementCount) {
assert termHash[2] != '@';
assert termHash == null || termHash[2] != '@';
return new ReferenceContainer<ReferenceType>(factory, termHash, WordReferenceRow.urlEntryRow, elementCount);
}

public void setWordHash(final byte[] newTermHash) {
assert termHash[2] != '@';
assert termHash == null || termHash[2] != '@';
this.termHash = newTermHash;
}

Expand Down

0 comments on commit 996572d

Please sign in to comment.