Uploaded image for project: 'Click'
  1. Click
  2. CLK-610

DateField formatPattern should not be static string, but static variable

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.2.0
    • Component/s: None
    • Labels:
      None

      Description

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

        Attachments

          Activity

            People

            • Assignee:
              sabob Bob Schellink
              Reporter:
              andreyrybin Andrew Fink
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: