git://source.jalview.org
/
jalview.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
JAL-3796 include entitlements when codesigning for macOS - doesn't actually help :(
[jalview.git]
/
src
/
jalview
/
datamodel
/
SearchResults.java
diff --git
a/src/jalview/datamodel/SearchResults.java
b/src/jalview/datamodel/SearchResults.java
index
7c3bba7
..
880f970
100755
(executable)
--- a/
src/jalview/datamodel/SearchResults.java
+++ b/
src/jalview/datamodel/SearchResults.java
@@
-234,8
+234,8
@@
public class SearchResults implements SearchResultsI
{
mfound = true;
matchStart = sequence.findIndex(m.start) - 1;
{
mfound = true;
matchStart = sequence.findIndex(m.start) - 1;
- matchEnd = m.start == m.end ? matchStart : sequence
- .findIndex(m.end) - 1;
+ matchEnd = m.start == m.end ? matchStart
+ : sequence.findIndex(m.end) - 1;
}
if (mfound)
}
if (mfound)
@@
-349,8
+349,10
@@
public class SearchResults implements SearchResultsI
}
/**
}
/**
- * Two SearchResults are considered equal if they contain the same matches in
- * the same order.
+ * Two SearchResults are considered equal if they contain the same matches
+ * (Sequence, start position, end position) in the same order
+ *
+ * @see Match#equals(Object)
*/
@Override
public boolean equals(Object obj)
*/
@Override
public boolean equals(Object obj)