Skip to content

Change *RequestHandler Builder signatures to do chainable calls#470

Merged
domesticmouse merged 1 commit intogooglemaps:masterfrom
apjanke:chainable-builder-signature
Jul 9, 2018
Merged

Change *RequestHandler Builder signatures to do chainable calls#470
domesticmouse merged 1 commit intogooglemaps:masterfrom
apjanke:chainable-builder-signature

Conversation

@apjanke
Copy link
Copy Markdown
Contributor

@apjanke apjanke commented Jul 7, 2018

Most Builder Pattern objects have their setters return this so calls are chainable. GeoApiContext.RequestHandler.Builder and its concrete implementations do not do this; they return void instead.

This seems like just an oversight to me; I don't see a technical reason for them not to be chainable.

This PR changes GeoApiContext.RequestHandler.Builder and its concrete subclasses to return this from its setter methods, so calls on them are chainable.

@domesticmouse domesticmouse merged commit b14894b into googlemaps:master Jul 9, 2018
@apjanke apjanke deleted the chainable-builder-signature branch July 9, 2018 04:37
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