Uploaded image for project: 'WildFly Core'
  1. WildFly Core
  2. WFCORE-5814

Use EnumMap in place of HashMap for enum keys; code cleanup

    XMLWordPrintable

Details

    • Enhancement
    • Resolution: Done
    • Minor
    • 19.0.0.Beta6, 19.0.0.Final
    • None
    • CLI
    • None

    Description

      EnumMap can be used instead of HashMap to hold the enum key values in CommandContextImpl since CommandContext.Scope is an enum:

      private Map<Scope, Map<String, Object>> map = new HashMap<>();
      

      Attachments

        Activity

          People

            jdenise@redhat.com Jean Francois Denise
            clara0 Clara Fang (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: