Skip to content

Conversation

@BiryukovVA
Copy link
Contributor

No description provided.


cur = next;
next++;
cur = idx / BITS;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I suggest to document how it works. It is not totally clear to me after reading the code what is done below


assertNotNull(entry1.getValue());
assertNotNull(entry2.getValue());
assertNotEquals(entry1.getKey(), entry2.getKey());
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I suggest to add space before sematic block

}

/**
*
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you please document what test does and what is expected.


return new Iterator<Entry<Integer, GridDhtPartitionState>>() {
private int next;
private int idx;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please add javadoc for this and other fields

private int idx;
private int cur;

@Override public boolean hasNext() {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like has next called twice will change iterarot state

@asfgit asfgit closed this in bc7814e May 4, 2018
macrergate pushed a commit to gridgain/apache-ignite that referenced this pull request Oct 16, 2018
…ache#3659.

Signed-off-by: dpavlov <dpavlov@apache.org>
(cherry picked from commit bc7814e)
antonovsergey93 pushed a commit to gridgain/apache-ignite that referenced this pull request Aug 25, 2019
…ache#3659.

Signed-off-by: dpavlov <dpavlov@apache.org>
(cherry picked from commit bc7814e)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants