Skip to content
This repository has been archived by the owner on Nov 23, 2021. It is now read-only.

Fix bugs detected by Sonarcloud after merging branch 250 #263

Merged
merged 3 commits into from
Aug 3, 2018

Conversation

kaczymuczy
Copy link

@kaczymuczy kaczymuczy commented Aug 2, 2018

Fix:

Description

Motivation and Context

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)

Checklist:

  • I have read the CONTRIBUTING document.
  • My code follows the code styleguide of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have added tests to cover my changes.

try {
return pageCount == getChildPageWindow().getPageCount();
} catch (StaleElementReferenceException e) {
Objects.requireNonNull(webDriver).navigate().refresh();
Copy link
Contributor

Choose a reason for hiding this comment

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

This is redundant, Guice can't inject nulls.

PageActivationStatus pageActivationStatusCell = childPageRow.getPageActivationStatus();
ActivationStatus activationStatus = pageActivationStatusCell.getActivationStatus();
return activationStatus == status;
Objects.requireNonNull(webDriver).navigate().refresh();
Copy link
Contributor

Choose a reason for hiding this comment

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

Same here.

@mkrzyzanowski mkrzyzanowski merged commit dde37d9 into master Aug 3, 2018
@mkrzyzanowski mkrzyzanowski deleted the fixes-with-sonarcloud branch November 27, 2018 15:38
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants