----- Original Message -----
From: "Ari Kermaier" <[EMAIL PROTECTED]>
To: "Attila Szegedi" <[EMAIL PROTECTED]>;
<[EMAIL PROTECTED]>
Sent: Friday, November 15, 2002 4:24 PM
Subject: Re: [Jaxen] Minor tuning opportunities


> > Second, I have spotted that in several code locations, Jaxen uses 1 long
> > ArrayLists for creating single element node sets. These could be
optimized
> > into java.util.Collections.singletonList() to prevent some unnecessary
> > allocations of array objects underlying the ArrayList.
>
> Unfortunately, the Collectons.singletonList() method is only available in
> JDK 1.3 and later, so you probably shouldn't do that unless Jaxen will no
> longer be supporting JDK 1.2.
>

Duh, you're right. Great. Both singleton() and singletonMap() were there in
1.2, only singletonList() was forgotten and made its way only into 1.3...

Well, I already committed changes that use singletonList into CVS. Should it
get rolled back then, or are we comfortable with 1.3 being the entry level
JDK conformance for Jaxen?

Attila.


> Ari Kermaier    [EMAIL PROTECTED]
> Senior Software Engineer
> Phaos Technology Corp.    http://www.phaos.com/
>
>
>
>



-------------------------------------------------------
This sf.net email is sponsored by: To learn the basics of securing 
your web site with SSL, click here to get a FREE TRIAL of a Thawte 
Server Certificate: http://www.gothawte.com/rd524.html
_______________________________________________
Jaxen-interest mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jaxen-interest

Reply via email to