X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=src%2Fvamsas%2Fobjects%2Fsimple%2FMsfalignment.java;h=e4b760b1ace5ced147a336227c5e22d47990ed39;hb=42e022a59de649375c8878c1d26361cb6bc89cb8;hp=1f3e152d71be4247f86989ee0f1993ff0b1bcb5f;hpb=ab43013b7e357b84b4abade0dba949668dfb2a0e;p=jalview.git diff --git a/src/vamsas/objects/simple/Msfalignment.java b/src/vamsas/objects/simple/Msfalignment.java index 1f3e152..e4b760b 100755 --- a/src/vamsas/objects/simple/Msfalignment.java +++ b/src/vamsas/objects/simple/Msfalignment.java @@ -1,6 +1,6 @@ /* - * Jalview - A Sequence Alignment Editor and Viewer (Version 2.8.2b1) - * 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. * @@ -78,17 +78,18 @@ public class Msfalignment implements java.io.Serializable private java.lang.Object __equalsCalc = null; + @Override public synchronized boolean equals(java.lang.Object obj) { - if (!(obj instanceof Msfalignment)) + if (obj == null) { return false; } - Msfalignment other = (Msfalignment) obj; - if (obj == null) + if (!(obj instanceof Msfalignment)) { return false; } + Msfalignment other = (Msfalignment) obj; if (this == obj) { return true; @@ -99,17 +100,18 @@ public class Msfalignment implements java.io.Serializable } __equalsCalc = obj; boolean _equals; - _equals = true - && ((this.msf == null && other.getMsf() == null) || (this.msf != null && this.msf - .equals(other.getMsf()))) - && ((this.notes == null && other.getNotes() == null) || (this.notes != null && this.notes - .equals(other.getNotes()))); + _equals = true && ((this.msf == null && other.getMsf() == null) + || (this.msf != null && this.msf.equals(other.getMsf()))) + && ((this.notes == null && other.getNotes() == null) + || (this.notes != null + && this.notes.equals(other.getNotes()))); __equalsCalc = null; return _equals; } private boolean __hashCodeCalc = false; + @Override public synchronized int hashCode() { if (__hashCodeCalc)