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

Overload EnumValidator.create(...) to avoid redundant set copy

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Done
    • Icon: Major Major
    • 20.0.0.Final
    • None
    • Management
    • None

      The vast majority of EnumValidator usage accepts all enum values, e.g.

      EnumValidator.create(enumClass);

      Currently, this is equivalent to:

      EnumValidator.create(enumClass, EnumSet.allOf(enumClass));

      which results in an unnecessary copy of the enum set.

            pferraro@redhat.com Paul Ferraro
            pferraro@redhat.com Paul Ferraro
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: