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

Avoid unnecessary allocations in AttributeDefinition model resolution

XMLWordPrintable

      The AttributeDefinition resolveModelAttribute and resolveValue variants that take an OperationContext param are doing pointless allocations to create an anonymous ExpressionResolver inner class that calls the context, which they pass into the method variant that takes an ExpressionResolver. This seems unnecessary; the passed in OperationContext is itself an ExpressionResolver and could be passed along directly.

              bstansbe@redhat.com Brian Stansberry
              bstansbe@redhat.com Brian Stansberry
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: