Uploaded image for project: 'Spring Framework'
  1. Spring Framework
  2. SPR-9918

Reduce code duplication in ContextLoaderUtils

    Details

    • Type: Refactoring
    • Status: Closed
    • Priority: Minor
    • Resolution: Complete
    • Affects Version/s: 3.2 M2
    • Fix Version/s: 3.2 RC1
    • Component/s: Test
    • Labels:
      None
    • Last commented by a User:
      false

      Description

      Status Quo

      In ContextLoaderUtils, these two methods contain similar loop logic:

      • resolveContextLoaderClass(Class<?>, String)
      • resolveContextConfigurationAttributes(Class<?>)

      Proposed Solution

      1. extract the duplicated loop logic into a new method.

        Attachments

          Activity

            People

            • Assignee:
              sbrannen Sam Brannen
              Reporter:
              tadaya Tadaya Tsuyukubo
              Last updater:
              Chris Beams
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Days since last comment:
                5 years, 48 weeks, 2 days ago