Uploaded image for project: 'WildFly'
  1. WildFly
  2. WFLY-15988

Use new set instead of add in BatchThreadPoolDescriptionResolver, and use array instead of list in ChainedContextHandle

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Done
    • Icon: Minor Minor
    • 27.0.0.Alpha1, 27.0.0.Final
    • None
    • Batch
    • None

      batch subsystem ChainedContextHandle currently has the following constructor, which saves context handlers into a list. We should be able to skip the list creation.

              public ChainedContextHandle(final ContextHandle... contextHandles) {
                  this.contextHandles = Arrays.asList(contextHandles);
              }
      

      BatchThreadPoolDescriptionResolver currently adds certain elements into a new set. We should be able to just create a new set.

              cfang@redhat.com Cheng Fang
              cfang@redhat.com Cheng Fang
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: