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-3010 select/hide columns includes subtypes in Summary View
[jalview.git]
/
src
/
vamsas
/
objects
/
simple
/
Sequence.java
diff --git
a/src/vamsas/objects/simple/Sequence.java
b/src/vamsas/objects/simple/Sequence.java
index
28dc9eb
..
8eb7208
100755
(executable)
--- a/
src/vamsas/objects/simple/Sequence.java
+++ b/
src/vamsas/objects/simple/Sequence.java
@@
-78,15
+78,22
@@
public class Sequence implements java.io.Serializable
private java.lang.Object __equalsCalc = null;
private java.lang.Object __equalsCalc = null;
+ @Override
public synchronized boolean equals(java.lang.Object obj)
{
public synchronized boolean equals(java.lang.Object obj)
{
+ if (obj == null)
+ {
+ return false;
+ }
if (!(obj instanceof Sequence))
if (!(obj instanceof Sequence))
+ {
return false;
return false;
+ }
Sequence other = (Sequence) obj;
Sequence other = (Sequence) obj;
- if (obj == null)
- return false;
if (this == obj)
if (this == obj)
+ {
return true;
return true;
+ }
if (__equalsCalc != null)
{
return (__equalsCalc == obj);
if (__equalsCalc != null)
{
return (__equalsCalc == obj);
@@
-104,6
+111,7
@@
public class Sequence implements java.io.Serializable
private boolean __hashCodeCalc = false;
private boolean __hashCodeCalc = false;
+ @Override
public synchronized int hashCode()
{
if (__hashCodeCalc)
public synchronized int hashCode()
{
if (__hashCodeCalc)