[
https://issues.apache.org/jira/browse/IGNITE-6301?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16160398#comment-16160398
]
ASF GitHub Bot commented on IGNITE-6301:
----------------------------------------
GitHub user nizhikov opened a pull request:
https://github.com/apache/ignite/pull/2628
IGNITE-6301: Unused variable removed.
getIndexedType marked as deprecated.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/nizhikov/ignite IGNITE-6301
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/ignite/pull/2628.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #2628
----
commit c7e91d979c7e40cd8c3e46d704088821a39b78af
Author: Nikolay Izhikov <[email protected]>
Date: 2017-09-10T16:34:11Z
IGNITE-6301: Unused variable removed. getIndexedType marked as deprecated.
----
> CacheConfiguration.indexedTypes never initialized and can be removed
> --------------------------------------------------------------------
>
> Key: IGNITE-6301
> URL: https://issues.apache.org/jira/browse/IGNITE-6301
> Project: Ignite
> Issue Type: Bug
> Components: sql
> Affects Versions: 2.1
> Reporter: Nikolay Izhikov
> Assignee: Nikolay Izhikov
> Priority: Trivial
>
> CacheConfiguration#indexedTypes never initialized and can be removed
> {code:java}
> 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.
> }
> }
> {code}
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)