Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
*/

/*
* Copyright (c) 2005, 2018, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2005, 2025, Oracle and/or its affiliates. All rights reserved.
* Portions Copyright (c) 2018, 2020, Chris Fraire <[email protected]>.
*/
package org.opengrok.indexer.search.context;
Expand Down Expand Up @@ -56,7 +56,7 @@ public abstract class LineMatcher {
* the check will return true if the only difference between the strings
* is difference in case.
*/
boolean equal(String s1, String s2) {
boolean equalStrings(String s1, String s2) {
return compareStrings(s1, s2) == 0;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ class PhraseMatcher extends LineMatcher {

@Override
public int match(String token) {
if (equal(token, phraseTerms[cur])) {
if (equalStrings(token, phraseTerms[cur])) {
if (cur < phraseTerms.length - 1) {
cur++;
return WAIT; //matching.
Expand All @@ -46,7 +46,7 @@ public int match(String token) {
return MATCHED; //matched!
} else if (cur > 0) {
cur = 0;
if (equal(token, phraseTerms[cur])) {
if (equalStrings(token, phraseTerms[cur])) {
cur++;
return WAIT; //matching.
}
Expand Down
Loading