From 6531bb7bf6ec98d23eb2143136482f87566c74a7 Mon Sep 17 00:00:00 2001 From: kiramt Date: Tue, 16 May 2017 10:37:48 +0100 Subject: [PATCH] JAL-2388 Rationalised hashCode method in HiddenColumns --- src/jalview/datamodel/HiddenColumns.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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) -- 1.7.10.2