Uploaded image for project: 'Repose'
  1. REP-4465

Replace Inappropriate Enums With Class Constants

    Details

    • Type: Story
    • Status: Resolved (View workflow)
    • Priority: Unprioritized
    • Resolution: Done
    • Affects versions: None
    • Fix versions: 8.5.0.1
    • Components: None
    • Labels:
      None
    • Epic Link:
    • Sprint:
      Sprint 136
    • Story Points:
      3
    • Capitalizable:
      True

      Description

      CommonHttpHeader and other similar enums should not exist. Enums make dealing with constant values more difficult. We're always calling toString on everything anyway, so we should just make them Strings. Also, HeaderConstant, wtf.

      Acceptance Criteria:

      • Get rid of the HeaderConstant interface.
      • Update all of the HeaderConstant implementation Enums to be Classes with String constants.
      • Consolidate ExtendedHttpHeader and some of the other useless header enums to somewhere else.
      • Ensure header equality continues to work (case insensitive).

        Attachments

          Activity

            People

            • Assignee:
              wdschei Bill Scheidegger
              Reporter:
              damien.johnson Damien Johnson
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: