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

make Bufferable collections safer #150

Merged
merged 3 commits into from
Nov 14, 2013
Merged

make Bufferable collections safer #150

merged 3 commits into from
Nov 14, 2013

Conversation

johnynek
Copy link
Collaborator

No description provided.

@@ -222,50 +223,41 @@ object Bufferable extends GeneratedTupleBufferable with Serializable {
val nextBb = reallocatingPut(bb){ _.putInt(size) }
l.foldLeft(nextBb) { (oldbb, t) => reallocatingPut(oldbb) { buf.put(_, t) } }
}
// Assumes the builder passed in was just created from a CanBuildFrom
Copy link
Collaborator

Choose a reason for hiding this comment

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

Is this touched on heavily outside of bijection itself? -- cleaner to just break the api if its not being used much? Or is it?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I doubt seriously anyone is using it on earth other than below in this file. Fix now?

Copy link
Collaborator

Choose a reason for hiding this comment

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

I think so, lets just get it out of the way, incase someone starts... :)

@johnynek
Copy link
Collaborator Author

closes #149

ianoc added a commit that referenced this pull request Nov 14, 2013
make Bufferable collections safer
@ianoc ianoc merged commit d830a50 into twitter:develop Nov 14, 2013
@ianoc ianoc deleted the bufferable-tests branch November 14, 2013 00:22
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.

2 participants