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

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

XMLWordPrintable

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

      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<>();
      

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

                Created:
                Updated:
                Resolved: