[infinispan-dev] Avoid Collections.emptySet() / emptyMap() / emptyList

Dan Berindei dan.berindei at gmail.com
Wed Oct 24 05:21:42 EDT 2012


On Tue, Oct 23, 2012 at 11:42 PM, Emmanuel Bernard
<emmanuel at hibernate.org>wrote:

> On Tue 2012-10-23 22:42, Dan Berindei wrote:
> > I was probably overreacting, but I just wouldn't want us to end up with
> > rules like 'all method parameters must be final' ;-)
>
> Well, that's good practice anyways, you should enforce that. I know we
> do in the Hibernate team.
>


Oops :)

I'm not saying it's bad, and maybe if the code base started this way it's
even easy to manage. But it's a matter of style, not a matter of
performance, and I definitely wouldn't want us to start enforcing it in
Infinispan.

Cheers
Dan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/infinispan-dev/attachments/20121024/1ee53a14/attachment.html 


More information about the infinispan-dev mailing list