You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "Richard Emberson (JIRA)" <ji...@apache.org> on 2010/11/18 22:13:15 UTC

[jira] Created: (WICKET-3177) Chunk.slice seq.subList(pos, pos) returns empty list so why bother

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
            Priority: Trivial


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.


[jira] Resolved: (WICKET-3177) Chunk.slice seq.subList(pos, pos) returns empty list so why bother

Posted by "Martin Grigorov (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/WICKET-3177?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Martin Grigorov resolved WICKET-3177.
-------------------------------------

       Resolution: Fixed
    Fix Version/s: 1.5-M4

Improved with r1037430

> 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.


[jira] Assigned: (WICKET-3177) Chunk.slice seq.subList(pos, pos) returns empty list so why bother

Posted by "Martin Grigorov (JIRA)" <ji...@apache.org>.
     [ 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.