XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • Trunk
    • 16.11.01
    • framework
    • None
    • Community Day 2 - 2016, OFBiz Community Day (May 2020)

    Description

      • Make class as final.
      • Add a private constructor.
      • Make the following public static variables as private and move them to top of class. Also move the static block initializing it.
                // FIXME: Not thread safe
            public static Set<String> serviceMethodNames = new HashSet<String>();
            static {
                serviceMethodNames.add("runSync");
                serviceMethodNames.add("runSyncIgnore");
                serviceMethodNames.add("runAsync");
                serviceMethodNames.add("runAsyncWait");
                serviceMethodNames.add("registerCallback");
                serviceMethodNames.add("schedule"); // NOTE: the service name may be the 1st, 2nd or 3rd param for variations on this
                serviceMethodNames.add("addRollbackService");
                serviceMethodNames.add("addCommitService");
            }
        
        

      Attachments

        1. OFBIZ-7591.patch
          6 kB
          Rohit Koushal

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: