X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=src%2Fuk%2Fac%2Febi%2Fwww%2FInputParams.java;h=ba8f8b0d08718b1fa498a72598daf29363d78372;hb=4f77328104498504339216829abf5ea87e2791ec;hp=c95ba3c91bc7a79d601e61ae113a438818e033e4;hpb=47168f025aefdaa044802bd5f8f510ffe43a4808;p=jalview.git diff --git a/src/uk/ac/ebi/www/InputParams.java b/src/uk/ac/ebi/www/InputParams.java index c95ba3c..ba8f8b0 100755 --- a/src/uk/ac/ebi/www/InputParams.java +++ b/src/uk/ac/ebi/www/InputParams.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. * @@ -220,17 +220,18 @@ public class InputParams implements java.io.Serializable private java.lang.Object __equalsCalc = null; + @Override public synchronized boolean equals(java.lang.Object obj) { - if (!(obj instanceof InputParams)) + if (obj == null) { return false; } - InputParams other = (InputParams) obj; - if (obj == null) + if (!(obj instanceof InputParams)) { return false; } + InputParams other = (InputParams) obj; if (this == obj) { return true; @@ -274,6 +275,7 @@ public class InputParams implements java.io.Serializable private boolean __hashCodeCalc = false; + @Override public synchronized int hashCode() { if (__hashCodeCalc) @@ -294,8 +296,8 @@ public class InputParams implements java.io.Serializable { _hashCode += getMatrix().hashCode(); } - _hashCode += new Float(getExp()).hashCode(); - _hashCode += new Boolean(isEchofilter()).hashCode(); + _hashCode += Float.valueOf(getExp()).hashCode(); + _hashCode += Boolean.valueOf(isEchofilter()).hashCode(); if (getFilter() != null) { _hashCode += getFilter().hashCode(); @@ -323,7 +325,7 @@ public class InputParams implements java.io.Serializable _hashCode += getOutformat().hashCode(); } _hashCode += getTopcombon(); - _hashCode += new Boolean(isAsync()).hashCode(); + _hashCode += Boolean.valueOf(isAsync()).hashCode(); if (getEmail() != null) { _hashCode += getEmail().hashCode();