Uploaded image for project: 'Groovy'
  1. Groovy
  2. GROOVY-9631

Replace legacy data structure with Java collection

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 4.0.0-alpha-1
    • None

    Description

      BACKGROUND
          Groovy home-made data structures are lack of maintainence for a long time, so it's better to replace them with mature and continuously improving data structure from JDK

      SCOPE

      1. Deprecate redundant AbstractConcurrentMapBase, AbstractConcurrentMap, ManagedConcurrentMap, and their related inner classes, e.g. Entry
      2. Replace ManagedConcurrentMap with ManagedIdentityConcurrentMap, which is base on ConcurrentHashMap
      3. Deprecate ComplexKeyHashMap, SingleKeyHashMap and TripleKeyHashMap. Note: TripleKeyHashMap is only used by never called method
      4. Polish Index and MethodIndex in the class MetaClassImpl, they derive from SingleKeyHashMap

      BENEFITS

      1. Better maintainence and readability
      2. Continuously improving data structure from JDK

      PULL REQUEST

       

      Attachments

        Issue Links

          Activity

            People

              daniel_sun Daniel Sun
              daniel_sun Daniel Sun
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 2h 40m
                  2h 40m