Uploaded image for project: 'Ignite'
  1. Ignite
  2. IGNITE-6301

CacheConfiguration.indexedTypes never initialized and can be removed

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Trivial
    • Resolution: Won't Fix
    • 2.1
    • None
    • sql
    • None

    Description

      CacheConfiguration#indexedTypes never initialized and can be removed

      public class CacheConfiguration<K, V> extends MutableConfiguration<K, V> {
      //...
          /** */
          private transient Class<?>[] indexedTypes;
      //....
          public CacheConfiguration<K, V> setIndexedTypes(Class<?>... indexedTypes) {
              if (F.isEmpty(indexedTypes))
                  return this;
      
              int len = indexedTypes.length;
      
              if (len == 0)
                  return this;
      
              A.ensure((len & 1) == 0,
                  "Number of indexed types is expected to be even. Refer to method javadoc for details.");
      
              if (this.indexedTypes != null)
                  throw new CacheException("Indexed types can be set only once.");
      
              Class<?>[] newIndexedTypes = new Class<?>[len];
      // other method body fill qryEntities list.
          }
      }
      

      Attachments

        Issue Links

          Activity

            People

              nizhikov Nikolay Izhikov
              nizhikov Nikolay Izhikov
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: