Den 14.06.2011 23:01, skrev Greg Brown:
b) A logical equality check may simply be unnecessary overhead. If a caller has explicitly invoked a setter for a property, we might reasonably assume that the caller genuinely wants to update the property's value. Calling an equals() method on the value in that case just incurs a needless performance hit. What do you think?
That's exactly my though! "If you called it, you probably meant it." And the equals check is unnecessary overhead as you say :)
-- Edvin
