From 649dc49c9afd49d5e9cb636c2c0d2e9c5d1f4d13 Mon Sep 17 00:00:00 2001 From: brinn <brinn> Date: Wed, 25 Nov 2009 17:34:48 +0000 Subject: [PATCH] fix: Eclipse warning by implementing hashCode() SVN: 13558 --- .../generic/client/web/client/dto/GridCustomColumnInfo.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/openbis/source/java/ch/systemsx/cisd/openbis/generic/client/web/client/dto/GridCustomColumnInfo.java b/openbis/source/java/ch/systemsx/cisd/openbis/generic/client/web/client/dto/GridCustomColumnInfo.java index b7108bdcd36..8cfdfc4a4db 100644 --- a/openbis/source/java/ch/systemsx/cisd/openbis/generic/client/web/client/dto/GridCustomColumnInfo.java +++ b/openbis/source/java/ch/systemsx/cisd/openbis/generic/client/web/client/dto/GridCustomColumnInfo.java @@ -69,4 +69,10 @@ public class GridCustomColumnInfo implements IsSerializable GridCustomColumnInfo that = (GridCustomColumnInfo) obj; return code.equals(that.code) && label.equals(that.label); } + + @Override + public int hashCode() + { + return ((17 * 59) + code.hashCode()) * 59 + label.hashCode(); + } } -- GitLab