You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@click.apache.org by "Bob Schellink (JIRA)" <ji...@apache.org> on 2010/01/17 13:41:54 UTC

[jira] Resolved: (CLK-610) DateField formatPattern should not be static string, but static variable

     [ https://issues.apache.org/jira/browse/CLK-610?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Bob Schellink resolved CLK-610.
-------------------------------

       Resolution: Fixed
    Fix Version/s: 2.1.0
         Assignee: Bob Schellink

Fixed in trunk.

> DateField formatPattern should not be static string, but static variable
> ------------------------------------------------------------------------
>
>                 Key: CLK-610
>                 URL: https://issues.apache.org/jira/browse/CLK-610
>             Project: Click
>          Issue Type: Improvement
>            Reporter: Andrey Rybin
>            Assignee: Bob Schellink
>             Fix For: 2.1.0
>
>
> DateField constructors contain this code:
>  super(...);
>   ...
>  setFormatPattern("dd MMM yyyy");
> (yes, same code 3 times ;-)
> I suggest to replace it with this:
> public static String defaultFormatPattern = "dd MMM yyyy";
>  super(...);
>   ...
>  setFormatPattern(defaultFormatPattern);

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