getRoles() is considered to access the roles read-only so the caller only gets 
a non-critical copy of the internal roles collection.

Am 04.08.2010 um 13:39 schrieb Josef:

> Hello.
> Quite new to the wicket world, and reading through code on some
> projects. So , excuse me for some beginners question farther on.
> 
> One thing i can't find is why would anyone do a clone like:
> 
>       @Override
>       public Roles getRoles() {
>               return (Roles) roles.clone();
>       }
> 
> when writing your own Session (extends AuthenticatedWebSession )
> Why is that?
> 
> Regards
> JA
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org

Reply via email to