MixedParamUrlCodingStrategy constructor should be variadic
----------------------------------------------------------

                 Key: WICKET-2222
                 URL: https://issues.apache.org/jira/browse/WICKET-2222
             Project: Wicket
          Issue Type: Wish
          Components: wicket
    Affects Versions: 1.4-RC2
            Reporter: Philippe Marschall
            Priority: Minor


If the following constructor:
{code}
public MixedParamUrlCodingStrategy(String mountPath, Class 
bookmarkablePageClass,
                String[] parameterNames)
{code}
would instead be defined as:
{code}
public MixedParamUrlCodingStrategy(String mountPath, Class 
bookmarkablePageClass,
                String... parameterNames)
{code}
The following code:
{code}
new MixedParamUrlCodingStrategy("products",ProductDetailPage.class, new 
String[]{"id"});
{code}
could be simplified into:
{code}
new MixedParamUrlCodingStrategy("products",ProductDetailPage.class, "id");
{code}

This change would be API and ABI compilant.


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