Details

    • Type: Sub-task
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: Trunk
    • Fix Version/s: 16.11.01
    • Component/s: framework
    • Labels:
      None
    • Sprint:
      Community Day 2 - 2016

      Description

      • Make class as final.
      • Add a private constructor.
      • Make the following public static variables as private
            public static final String[] months = {
                "January", "February", "March", "April", "May", "June",
                "July", "August", "September", "October", "November",
                "December"
            };
        
            public static final String[] days = {
                "Monday", "Tuesday", "Wednesday",
                "Thursday", "Friday", "Saturday", "Sunday"
            };
        
            public static final String[][] timevals = {
                {"1000", "millisecond"},
                {"60", "second"},
                {"60", "minute"},
                {"24", "hour"},
                {"168", "week"}
            };
        
            public static final DecimalFormat df = new DecimalFormat("0.00;-0.00");
            public static final String DATE_FORMAT = "yyyy-MM-dd";
            public static final String DATE_TIME_FORMAT = "yyyy-MM-dd HH:mm:ss.SSS";
            public static final String TIME_FORMAT = "HH:mm:ss";
        
      • Add public static methods as getDateFormat(), getDateTimeFormat() and getTimeFormat() methods and use them in following classes;
            DateTimeConverters.java
            UelFunctions.java
            CommonWidgetModels.java
            ModelFormField.java
            SetCalendar.java
            EbayStoreAutoPreferences.java
        
      1. OFBIZ-7562.patch
        15 kB
        Rohit Koushal

        Activity

        Hide
        rohit.koushal Rohit Koushal added a comment -

        Thanks Rishi Solanki for the details. Here is the patch for the ticket.

        Show
        rohit.koushal Rohit Koushal added a comment - Thanks Rishi Solanki for the details. Here is the patch for the ticket.
        Hide
        arunpati Arun Patidar added a comment -

        Committed changes in trunk at rev: 1751028.

        Thanks Rishi Solanki and Rohit Koushal for your contribution.

        Show
        arunpati Arun Patidar added a comment - Committed changes in trunk at rev: 1751028. Thanks Rishi Solanki and Rohit Koushal for your contribution.

          People

          • Assignee:
            arunpati Arun Patidar
            Reporter:
            rishisolankii Rishi Solanki
          • Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development

                Agile