X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=src%2Fvamsas%2Fobjects%2Fsimple%2FSecstructpred.java;h=170de0797779a60a78f059b880aafde6334beecb;hb=3459a8a691cb22508d7067f240b7254e588e77d3;hp=a9bdeda61e05c8b078d6c847fdd4463a7f987781;hpb=ab43013b7e357b84b4abade0dba949668dfb2a0e;p=jalview.git diff --git a/src/vamsas/objects/simple/Secstructpred.java b/src/vamsas/objects/simple/Secstructpred.java index a9bdeda..170de07 100755 --- a/src/vamsas/objects/simple/Secstructpred.java +++ b/src/vamsas/objects/simple/Secstructpred.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. * @@ -57,15 +57,15 @@ public class Secstructpred implements java.io.Serializable public synchronized boolean equals(java.lang.Object obj) { - if (!(obj instanceof Secstructpred)) + if (obj == null) { return false; } - Secstructpred other = (Secstructpred) obj; - if (obj == null) + if (!(obj instanceof Secstructpred)) { return false; } + Secstructpred other = (Secstructpred) obj; if (this == obj) { return true; @@ -76,8 +76,9 @@ public class Secstructpred implements java.io.Serializable } __equalsCalc = obj; boolean _equals; - _equals = true && ((this.output == null && other.getOutput() == null) || (this.output != null && this.output - .equals(other.getOutput()))); + _equals = true && ((this.output == null && other.getOutput() == null) + || (this.output != null + && this.output.equals(other.getOutput()))); __equalsCalc = null; return _equals; }