-
Notifications
You must be signed in to change notification settings - Fork 644
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
Fix, document, and test ColumnType.compare and Table.compareRows #1266
Conversation
73c9c25
to
46445a3
Compare
All conversation should be fixed. I rebased the branch also in case |
Can you rebase this PR again to make sure the formatter runs against it now that the formatter's been fixed? |
I'm unable to make the formatter working for the moment |
@ccleva could you try rebasing and formatting now that you've gotten the formatter working? |
46445a3
to
92fdb67
Compare
Yes, I rebased then ran the hook manually |
* Compares the row at {@code rowNumber} in {@code column1} and {@code column2} and returns whether they are equal. | ||
* @throws {@code IndexOutOfBoundsException} if {@code rowNumber} exceeds either column size | ||
*/ | ||
default boolean compare(int rowNumber, Column<?> column1, Column<?> column2) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this feels like kind of a weird method honestly. I wonder if we even need it to be a standalone method or if we can just inline it into compareRows
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It might be used by people for other purposes. No harm in keeping it I think.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We're changing the functioning of it pretty drastically. Anyone who is relying on it is going to be broken. Better for them to find that out at compile-time because we removed it than at runtime
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah right, this one was broken in the previous version anyway, good point. Will change as you suggest
* Fix document and test ColumnType.compare and Table.compareRows * Fix sonar comment * More explicit test name
92fdb67
to
90c3083
Compare
Thanks for contributing.
Description
Fixes #1229
Testing
Yes, let me know if you want them moved to an existing test class