Skip to content

[java] Optimize equals and hashCode methods of Rectangle class#11918

Merged
diemol merged 2 commits intoSeleniumHQ:trunkfrom
valfirst:optimize-equals-and-hashCode-of-rectangle
May 22, 2023
Merged

[java] Optimize equals and hashCode methods of Rectangle class#11918
diemol merged 2 commits intoSeleniumHQ:trunkfrom
valfirst:optimize-equals-and-hashCode-of-rectangle

Conversation

@valfirst
Copy link
Copy Markdown
Contributor

Thanks for contributing to Selenium!
A PR well described will help maintainers to quickly review and merge it

Before submitting your PR, please check our contributing guidelines.
Avoid large PRs, help reviewers by making them as simple and short as possible.

Description

Optimize equals and hashCode methods of Rectangle class

Motivation and Context

Avoid creation of additional objects when invoking equals and hashCode methods of Rectangle class

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 change)

Checklist

  • I have read the contributing document.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have added tests to cover my changes.
  • All new and existing tests passed.

@codecov-commenter
Copy link
Copy Markdown

codecov-commenter commented Apr 19, 2023

Codecov Report

Patch and project coverage have no change.

Comparison is base (c149513) 54.85% compared to head (3088176) 54.85%.

❗ Current head 3088176 differs from pull request most recent head 004fd7a. Consider uploading reports for the commit 004fd7a to get more accurate results

❗ Your organization is not using the GitHub App Integration. As a result you may experience degraded service beginning May 15th. Please install the Github App Integration for your organization. Read more.

Additional details and impacted files
@@           Coverage Diff           @@
##            trunk   #11918   +/-   ##
=======================================
  Coverage   54.85%   54.85%           
=======================================
  Files          86       86           
  Lines        5728     5728           
  Branches      233      233           
=======================================
  Hits         3142     3142           
  Misses       2353     2353           
  Partials      233      233           

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

Comment thread java/src/org/openqa/selenium/Rectangle.java
Copy link
Copy Markdown
Member

@diemol diemol left a comment

Choose a reason for hiding this comment

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

Thank you, @valfirst!

@diemol diemol merged commit 0f8a922 into SeleniumHQ:trunk May 22, 2023
@valfirst valfirst deleted the optimize-equals-and-hashCode-of-rectangle branch May 22, 2023 09:18
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.

5 participants