[ 
https://issues.apache.org/jira/browse/WICKET-845?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12532056
 ] 

Sam Hough commented on WICKET-845:
----------------------------------

Seems handy for optimisation. Quite often the caller will be using a 
StringBuilder and might make sense not to create a new String object until/if 
needed. Maybe just add a constructor that take CharSequence even if, for now, 
it immediately converts it to a String?

> Label constructor
> -----------------
>
>                 Key: WICKET-845
>                 URL: https://issues.apache.org/jira/browse/WICKET-845
>             Project: Wicket
>          Issue Type: Improvement
>          Components: wicket
>    Affects Versions: 1.3.0-beta2
>            Reporter: Sean Sullivan
>             Fix For: 1.3.0-beta4
>
>
> Currently, the Label class provides this constructor:
>           public Label(final String id, String label)
> Can this be changed to:
>           public Label(final String id, CharSequence label)
> Thanks!

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to