Skip to content
This repository was archived by the owner on Mar 27, 2018. It is now read-only.

Switched to member data iterator so that seek may work.#569

Merged
gerring merged 6 commits intomasterfrom
seek
Feb 24, 2017
Merged

Switched to member data iterator so that seek may work.#569
gerring merged 6 commits intomasterfrom
seek

Conversation

@gerring
Copy link
Copy Markdown
Contributor

@gerring gerring commented Feb 23, 2017

No description provided.

}

/**
* TODO This code is copied from AcquisitionDevice but
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

INFO Complete the task associated to this TODO comment. rule

while(iterator.hasNext()) {
IPosition pos = iterator.next();
pos.setStepIndex(stepNumber);
if (stepNumber == location) return pos;
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

MAJOR At most one statement is allowed per line, but 2 statements were found on this line. rule

size = ((IPointGenerator<?>)gen).size();

} else if (gen!=null) {
for (IPosition unused : gen) size++; // Fast even for large stuff providing they do not check hardware on the next() call.
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

MAJOR At most one statement is allowed per line, but 2 statements were found on this line. rule
MINOR Remove this unused "unused" local variable. rule

}
}

private void positionComplete(IPosition pos) throws EventException, ScanningException {
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

MINOR Remove the redundant '!unknownSymbol!' thrown exception declaration(s). rule

}


private int getEstimatedSize(Iterable<IPosition> gen) throws GeneratorException {
Copy link
Copy Markdown
Contributor Author

@gerring gerring Feb 23, 2017

Choose a reason for hiding this comment

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

MAJOR Remove this unused private "getEstimatedSize" method. rule

@gerring
Copy link
Copy Markdown
Contributor Author

gerring commented Feb 23, 2017

SonarQube analysis reported 7 issues

  • MAJOR 4 major
  • MINOR 2 minor
  • INFO 1 info

Watch the comments in this conversation to review them.

1 extra issue

Note: The following issues were found on lines that were not modified in the pull request. Because these issues can't be reported as line comments, they are summarized here:

  1. MAJOR AcquisitionDevice.java#L407: Remove this unused private "fireStart" method. rule

@gerring gerring merged commit 8748da7 into master Feb 24, 2017
@gerring gerring deleted the seek branch February 24, 2017 09:13
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant