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

Adding Seek to AcquisitionDevice#568

Merged
gerring merged 16 commits intomasterfrom
seek
Feb 23, 2017
Merged

Adding Seek to AcquisitionDevice#568
gerring merged 16 commits intomasterfrom
seek

Conversation

@gerring
Copy link
Copy Markdown
Contributor

@gerring gerring commented Feb 23, 2017

No description provided.

// if (gen.containsPoint(x, y)) {
currentPoint = point;
index++;
if (currentPoint!=null) currentPoint.setStepIndex(index);
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

// position. Therefore we do not need a subscan moderator but can run the iterator
// to the point
IPosition pos = positionForStep(stepNumber);
if (pos == null) throw new ScanningException("Seek position is invalid "+stepNumber);
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

int count=0;
for (IPosition pos : model.getPositionIterable()) {
pos.setStepIndex(count);
if (count == stepNumber) 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

public boolean hasNext() {
next = getNext();
index++;
if (next!=null) next.setStepIndex(index);
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 At most one statement is allowed per line, but 2 statements were found on this line. rule


List<IPosition> points = new ArrayList<>(size());
createPoints(0, points, null);
for (int i = 0; i < points.size(); i++) points.get(i).setStepIndex(i);
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

@gerring
Copy link
Copy Markdown
Contributor Author

gerring commented Feb 23, 2017

SonarQube analysis reported 5 issues

  • MAJOR 5 major

Watch the comments in this conversation to review them.

@gerring gerring merged commit 53927b3 into master Feb 23, 2017
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