Skip to content

Commit da082c8

Browse files
committed
Unconfuse name to MatchInfo.areEqual().
1 parent 3c2e0ee commit da082c8

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

engine/src/main/java/nl/inl/blacklab/search/lucene/MatchInfo.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ public String jsonName() {
3737
* @param b the second MatchInfo
3838
* @return true iff both are null, or if they are equal
3939
*/
40-
public static boolean equal(MatchInfo[] a, MatchInfo[] b) {
40+
public static boolean areEqual(MatchInfo[] a, MatchInfo[] b) {
4141
if ((a == null) != (b == null)) {
4242
// One is null, the other is not.
4343
return false;

engine/src/main/java/nl/inl/blacklab/search/results/SpansReader.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ class SpansReader implements Runnable {
168168
public boolean isSameAsLast(HitsInternal hits, int doc, int start, int end, MatchInfo[] matchInfo) {
169169
long prev = hits.size() - 1;
170170
return hits.size() > 0 && doc == hits.doc(prev) && start == hits.start(prev) && end == hits.end(prev) &&
171-
MatchInfo.equal(matchInfo, hits.matchInfo(prev));
171+
MatchInfo.areEqual(matchInfo, hits.matchInfo(prev));
172172
}
173173

174174
void initialize() {

0 commit comments

Comments
 (0)