Jody Garnett a écrit :
> However "citation.freeze()" is protected, how do I as a user lock down 
> my bean before passing it off to innocent code that expects it to be 
> immutable?


     Citation myCitation = ...
     myCitation = (Citation) citation.unmodifiable();

'freeze()' is used for the implementation of 'unmodifiable()'. The cast will 
disaspear when we will be allowed to compile for Java 5.

        Martin

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Geotools-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-devel

Reply via email to