Click
  1. Click
  2. CLK-610

DateField formatPattern should not be static string, but static variable

    Details

    • Type: Improvement Improvement
    • Status: Resolved
    • Priority: Major 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);

        Activity

          People

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

            Dates

            • Created:
              Updated:
              Resolved:

              Development