Uploaded image for project: 'OFBiz'
  1. OFBiz
  2. OFBIZ-9393

UtilMisc.toMap(), toList() and toSet() refactoring taking Varargs for creating the wanted data structure

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Trivial
    • Resolution: Implemented
    • Trunk
    • 17.12.01
    • framework
    • None

    Description

      This patch removes a number of outdated methods that took a fixed number of objects to create a data structure, such as a linked list. Since the code is outdated and inflexible, this patch removes these methods and added methods to create the given data structure via a variable amount of arguments. This approach also ensures that no other code needs a refactoring. In addition the method populateMap() was removed which was private and was only used by the multiple outdated toMap() functions.

      Attachments

        Activity

          People

            mbrohl Michael Brohl
            mbecker Martin Becker
            Votes:
            2 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: