Skip to content

binder: Remove redundant ServerInbound.serverTransport field#12734

Open
jdcormie wants to merge 1 commit intogrpc:masterfrom
jdcormie:grpc-inbound-field
Open

binder: Remove redundant ServerInbound.serverTransport field#12734
jdcormie wants to merge 1 commit intogrpc:masterfrom
jdcormie:grpc-inbound-field

Conversation

@jdcormie
Copy link
Copy Markdown
Member

No description provided.

Copy link
Copy Markdown
Member

@ejona86 ejona86 left a comment

Choose a reason for hiding this comment

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

An alternative approach is to store the data in the subclass, which removes the need for any generics. You'd have a abstract BinderTransport getTransport() in the base class and store the more precise field in the subclasses. And the subclasses are free to provide a more precise return value like BinderClientTransport getTransport() (but it seems that is unnecessary in this case).

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