poi-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject [Bug 60845] [PATCH] copied cell style and CF
Date Fri, 24 Mar 2017 06:34:40 GMT

--- Comment #32 from dollinger.florian@gmx.de ---
Well, I was thinking since yesterday why and which one is preferable over the
other and came to the conclusion that the method I used is maybe a bit more
reliable, since

a.getClass() == b.getClass()

returns TRUE only, if the two Classes are really the same. In contrast,

a instanceOf bClass

returns also true, if a is of a subclass of b.
I think that violates the equals contract on transitivity.

I also found a website telling the same: http://onewebsql.com/blog/on-equals

You are receiving this mail because:
You are the assignee for the bug.
To unsubscribe, e-mail: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org

View raw message