/*
- * 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.
*
@Override
public boolean equals(Object o)
{
+ // TODO should override Object.hashCode() to ensure that equal objects have
+ // equal hashcodes
if (o == null || !(o instanceof Mapping))
{
return false;
{
return false;
}
- if (map.equals(other.map))
+ if ((map == null && other.map == null) || map.equals(other.map))
{
return true;
}