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

Dan Berindei dan.berindei at gmail.com
Fri Oct 19 15:55:14 EDT 2012


On Fri, Oct 19, 2012 at 7:50 PM, Tristan Tarrant <ttarrant at redhat.com>wrote:

> On 10/19/2012 06:28 PM, Dan Berindei wrote:
> > Galder, what JDK are you using? OpenJDK 1.7 uses
> > EmptyIterator.EMPTY_ITERATOR since 2007:
> >
> >
> http://hg.openjdk.java.net/jdk7/jdk7/jdk/annotate/37a05a11f281/src/share/classes/java/util/Collections.java
> >
> > I don't have JDK 1.6 sources on hand to check, but I don't think it's
> > worth optimizing for such an old version anyway.
> An old version which is probably in use in most production environments :)
>
>
If they aren't ready to upgrade to JDK7, I doubt they're willing to upgrade
to Infinispan 5.2 :)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/infinispan-dev/attachments/20121019/5f4791fa/attachment.html 


More information about the infinispan-dev mailing list