add hashCode for corresponding equals function
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1717940 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
abced24fe4
commit
4aa6108c0d
@ -189,4 +189,9 @@ public class ExcelStyleDateFormatter extends SimpleDateFormat {
|
|||||||
ExcelStyleDateFormatter other = (ExcelStyleDateFormatter) o;
|
ExcelStyleDateFormatter other = (ExcelStyleDateFormatter) o;
|
||||||
return dateToBeFormatted == other.dateToBeFormatted;
|
return dateToBeFormatted == other.dateToBeFormatted;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public int hashCode() {
|
||||||
|
return new Double(dateToBeFormatted).hashCode();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user