Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed analysis warning about if statements in PlateHorizontalGraph. #38

Conversation

FridaTveit
Copy link
Contributor

Changed empty if statements to while statements. Removed unused argument 'count'. Removed unused field 'handle'. Changed Plate.java to reflect this change. This relates to issue #18 .

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.03%) to 14.113% when pulling 437f960 on FridaTveit:FixCodeAnalysisWarningsInPlateHorizontalGraph into b759460 on oskopek:master.

1 similar comment
@coveralls
Copy link

coveralls commented Dec 22, 2016

Coverage Status

Coverage decreased (-0.03%) to 14.113% when pulling 437f960 on FridaTveit:FixCodeAnalysisWarningsInPlateHorizontalGraph into b759460 on oskopek:master.

Copy link
Owner

@oskopek oskopek left a comment

Choose a reason for hiding this comment

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

Thanks! Will merge in a few days if you don't get around to fixing the few optional comments I left for you :)

}

public Vector<Peak> findPeak_derivative(int count) {
Copy link
Owner

Choose a reason for hiding this comment

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

Optional: Would you formatting the name of this and the other findPeak method to camelCase?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Will do!

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done :)

int a, b;
public Vector<Peak> findPeak_derivative() {
int a = 2;
int b = this.yValues.size() - 1 - 2;
float maxVal = this.getMaxValue();
Copy link
Owner

Choose a reason for hiding this comment

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

Optional: Remove all the extra this statements if you feel like it :) See #42

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Will do!

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done :)

…hanged empty if statements to while statements. Removed unused argument count. Removed unused field handle. Changed Plate.java to reflect this change.
@FridaTveit FridaTveit force-pushed the FixCodeAnalysisWarningsInPlateHorizontalGraph branch from 437f960 to c92fc62 Compare December 23, 2016 15:21
@coveralls
Copy link

coveralls commented Dec 23, 2016

Coverage Status

Coverage decreased (-0.03%) to 14.113% when pulling c92fc62 on FridaTveit:FixCodeAnalysisWarningsInPlateHorizontalGraph into 45b7c34 on oskopek:master.

@oskopek oskopek merged commit 5ec2e45 into oskopek:master Dec 23, 2016
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.

3 participants