You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "Martin Grigorov (JIRA)" <ji...@apache.org> on 2010/11/21 12:54:14 UTC
[jira] Assigned: (WICKET-3177) Chunk.slice seq.subList(pos, pos)
returns empty list so why bother
[ https://issues.apache.org/jira/browse/WICKET-3177?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Martin Grigorov reassigned WICKET-3177:
---------------------------------------
Assignee: Martin Grigorov
> Chunk.slice seq.subList(pos, pos) returns empty list so why bother
> ------------------------------------------------------------------
>
> Key: WICKET-3177
> URL: https://issues.apache.org/jira/browse/WICKET-3177
> Project: Wicket
> Issue Type: Improvement
> Components: wicket
> Affects Versions: 1.5-M3
> Environment: any
> Reporter: Richard Emberson
> Assignee: Martin Grigorov
> Priority: Trivial
> Fix For: 1.5-M4
>
>
> In the method Chuck.splice when count <= 0 the following code is exectued:
> return new ArrayList<T>(seq.subList(pos, pos));
> Well, seq.subList(pos, pos) returns an empty list so you might want to
> change the line to be something like:
> return new ArrayList<T>();
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.