On Fri, May 4, 2012 at 1:06 PM, Jean-Vincent Drean <[email protected]> wrote:
> On Wed, May 2, 2012 at 6:28 PM, Jean-Vincent Drean <[email protected]> wrote:
>> Hi,
>>
>>
>> In addition to QueryFilter#filterStatement(), this method would be
>> called from the QueryExecutor and it would allow the filter to mofidy
>> the result list of a query.
>>
>
> As Thomas pointed out in a recent discussion the fact that the result
> list can be heavily modified by the filter (and indeed I already have
> a filter transforming List<Object[]> to List<String>) doesn't match
> with the API signature. I'd like to modify the proposal:
>
> ====================8<====================
>    /**
>     * Filter a list of query results. The result list can be returned
> without modification.
>     *
>     * @param results the original result list.
>     * @return a filtered result list.
>     */

>    List filterResults(List results);

List<?> filterResults(List<?> results);

to avoid the warnings?

Thanks,
Marius

> ====================8<====================
>
>
> --
> Jean-Vincent Drean,
> XWiki.
> _______________________________________________
> devs mailing list
> [email protected]
> http://lists.xwiki.org/mailman/listinfo/devs
_______________________________________________
devs mailing list
[email protected]
http://lists.xwiki.org/mailman/listinfo/devs

Reply via email to