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
Merge develop to Release_2_8_3_Branch
[jalview.git]
/
src
/
jalview
/
analysis
/
SequenceIdMatcher.java
diff --git
a/src/jalview/analysis/SequenceIdMatcher.java
b/src/jalview/analysis/SequenceIdMatcher.java
index
bedce3f
..
e6a4853
100755
(executable)
--- a/
src/jalview/analysis/SequenceIdMatcher.java
+++ b/
src/jalview/analysis/SequenceIdMatcher.java
@@
-1,6
+1,6
@@
/*
/*
- * Jalview - A Sequence Alignment Editor and Viewer (Version 2.8.2)
- * Copyright (C) 2014 The Jalview Authors
+ * Jalview - A Sequence Alignment Editor and Viewer ($$Version-Rel$$)
+ * Copyright (C) $$Year-Rel$$ The Jalview Authors
*
* This file is part of Jalview.
*
*
* This file is part of Jalview.
*
@@
-20,9
+20,12
@@
*/
package jalview.analysis;
*/
package jalview.analysis;
-import java.util.*;
+import jalview.datamodel.DBRefEntry;
+import jalview.datamodel.SequenceI;
-import jalview.datamodel.*;
+import java.util.ArrayList;
+import java.util.Hashtable;
+import java.util.Vector;
/**
* Routines for approximate Sequence Id resolution by name using string
/**
* Routines for approximate Sequence Id resolution by name using string
@@
-258,14
+261,20
@@
public class SequenceIdMatcher
}
}
}
}
+ @Override
public int hashCode()
{
return ((id.length() >= 4) ? id.substring(0, 4).hashCode() : id
.hashCode());
}
public int hashCode()
{
return ((id.length() >= 4) ? id.substring(0, 4).hashCode() : id
.hashCode());
}
+ @Override
public boolean equals(Object s)
{
public boolean equals(Object s)
{
+ if (s == null)
+ {
+ return false;
+ }
if (s instanceof SeqIdName)
{
return this.equals((SeqIdName) s);
if (s instanceof SeqIdName)
{
return this.equals((SeqIdName) s);