Uploaded image for project: 'Infinispan'
  1. Infinispan
  2. ISPN-1776

Unnecessary object creation during configuration adaptation

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Done
    • Icon: Minor Minor
    • 5.1.0.FINAL
    • 5.1.0.CR4
    • Configuration
    • None

      DefaultCacheManager is unnecessarily creating instances of LegacyConfigurationAdaptor to call static methods.
      e.g.

      @Override
      public org.infinispan.configuration.cache.Configuration defineConfiguration(String cacheName, org.infinispan.configuration.cache.Configuration configuration)

      { defineConfiguration(cacheName, new LegacyConfigurationAdaptor().adapt(configuration)); return configuration; }

      even though adapt() is a static method.

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

                Created:
                Updated:
                Resolved: