Craig Jones <crai..ankardsaweigh.com> wrote:
> Elsewhere in the list I saw Andrus call context.localObjects and use
> this as a parameter:
>
> Collections.singletonList(obj)
>
> As opposed to your
>
> Arrays.asList(new Object[] { obj } )
>
> Both seem to convert a single item to a list. Is there any difference?
I doubt it makes much difference. Use whichever you prefer.
This archive was generated by hypermail 2.0.0 : Sun Apr 11 2004 - 12:10:26 EDT