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

DRILL-1942-hygiene #120

Closed
wants to merge 1 commit into from
Closed

DRILL-1942-hygiene #120

wants to merge 1 commit into from

Conversation

cwestin
Copy link
Contributor

@cwestin cwestin commented Aug 18, 2015

  • Formatting
  • @OVERRIDES
  • finals
  • some AutoCloseable additions needed for upcoming patches
  • new isCancelled() abstract method on FragmentManager, implemented on subclasses;
    Added missing new abstract method isCancelled(); needed for upcoming patches

Unit tests passed
Precommit suite passed (except for Windows)

- Formatting
- @OVERRIDES
- finals
- some AutoCloseable additions
- new isCancelled() abstract method on FragmentManager, implemented on subclasses

Added missing new abstract method isCancelled()
@@ -211,8 +220,11 @@ public TransferPair makeTransferPair(ValueVector to) {

public void transferTo(BitVector target) {
target.clear();
if (target.data != null) {
target.data.release();
Copy link
Contributor

Choose a reason for hiding this comment

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

release(1) ?

Also, do you intend to change from retain() to retain(1) across the source codes? Seems some places are still using retain(). Do a quick search will find couple of places, including BitVector.load(), VariableLengthVectors.java:load() etc.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Originally I did change all the release()s and retain()s to (1) in all files. But Jacques made me undo them in a few files he reviewed in another patch, and I haven't searched to see if there are new additions since I made the original changes. I think it's worth saving the function call for some low-level things (such as value vectors). What would you prefer?

Copy link
Contributor

Choose a reason for hiding this comment

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

I think the current form is good. I'll merge the patch as it is.

@jinfengni
Copy link
Contributor

+1

LGTM.

*
* @return true if the FragmentManager has been cancelled.
*/
boolean isCancelled();
Copy link
Contributor

Choose a reason for hiding this comment

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

I don't see this method being used anywhere. Is this change intended?

Copy link
Contributor

Choose a reason for hiding this comment

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

"Added missing new abstract method isCancelled(); needed for upcoming patches"

Copy link
Contributor

Choose a reason for hiding this comment

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

My bad.. I did not see that mentioned in the commit message, and I did not realize the PR was made with comments in addition to the commit message.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, this is a prerequisite for another patch that is coming.

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.

None yet

3 participants