Skip to content

BAH-700 | Lab Results page sorting issue#19

Open
sai789 wants to merge 6 commits into
masterfrom
unknown repository
Open

BAH-700 | Lab Results page sorting issue#19
sai789 wants to merge 6 commits into
masterfrom
unknown repository

Conversation

@sai789

@sai789 sai789 commented Dec 11, 2018

Copy link
Copy Markdown
Contributor

@CLAassistant

CLAassistant commented Dec 11, 2018

Copy link
Copy Markdown

CLA assistant check
All committers have signed the CLA.

try {
return Integer.parseInt(firstResult.getTestSortOrder()) - Integer.parseInt(secondResult.getTestSortOrder());
} catch (NumberFormatException e) {
return firstResult.getTestName().compareTo(secondResult.getTestName());

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Handling logic in the catch block is a code smell. Please handle main logic part in the try block

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.

4 participants