On Feb 17, 6:15 am, Alexander Snaps <[email protected]> wrote:
> On Sun, Feb 15, 2009 at 7:13 PM, Reinier Zwitserloot 
> <[email protected]>wrote:
>
> > I mark any immutable class final, because if it isn't, then you can't
> > rely on its immutability (any subclass is assignment compatible and is
> > not neccessarily immutable!).
>
> While I tend to agree with marking "type" classes as final, I don't believe
> that a class being immutable is reason enough to mark it final.

If it's not final, it probably isn't immutable. Take java.io.File.
Please.

Tom Hawtin
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "The 
Java Posse" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/javaposse?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to