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

why "Source" inteface depend on "Buffer" #115

Closed
brucefengnju opened this issue Feb 6, 2015 · 2 comments
Closed

why "Source" inteface depend on "Buffer" #115

brucefengnju opened this issue Feb 6, 2015 · 2 comments

Comments

@brucefengnju
Copy link

"Buffer" implements "BufferedSource" , "BufferedSource" extends "Source", "Source" depends on Buffer.It's a circle. in my opinion, it's not a good design pattern.Is there some good reason to do this?

@swankjesse
Copy link
Member

It's a family. Like how java.lang.String and java.lang.Object depend on each other.

@swankjesse
Copy link
Member

(I assume there's no practical problem )

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

No branches or pull requests

2 participants