From: kiramt Date: Tue, 16 May 2017 09:37:48 +0000 (+0100) Subject: JAL-2388 Rationalised hashCode method in HiddenColumns X-Git-Tag: Release_2_10_2~3^2~86 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=6531bb7bf6ec98d23eb2143136482f87566c74a7;p=jalview.git JAL-2388 Rationalised hashCode method in HiddenColumns --- diff --git a/src/jalview/datamodel/HiddenColumns.java b/src/jalview/datamodel/HiddenColumns.java index 2edb3f1..3685ab0 100644 --- a/src/jalview/datamodel/HiddenColumns.java +++ b/src/jalview/datamodel/HiddenColumns.java @@ -1247,9 +1247,10 @@ public class HiddenColumns /** * Returns a hashCode built from hidden column ranges */ - public int hashCode(int hc) + @Override + public int hashCode() { - int hashCode = hc; + int hashCode = 1; if (hiddenColumns != null) { for (int[] hidden : hiddenColumns)