Skip to content

Tweak toXContent implementation of ParametrizedFieldMapper#59968

Merged
javanna merged 1 commit intoelastic:masterfrom
javanna:enhancement/param_field_mapper_tweak_toxcontent
Jul 21, 2020
Merged

Tweak toXContent implementation of ParametrizedFieldMapper#59968
javanna merged 1 commit intoelastic:masterfrom
javanna:enhancement/param_field_mapper_tweak_toxcontent

Conversation

@javanna
Copy link
Copy Markdown
Contributor

@javanna javanna commented Jul 21, 2020

ParametrizedFieldMapper overrides toXContent from FieldMapper, yet it could override doXContentBody and rely on the toXContent from the base class. Additionally, this allows to make doXContentBody final. Also, toXContent is still overridden only to make it final.

ParametrizedFieldMapper overrides `toXContent` from `FieldMapper`, yet it could override `doXContentBody` and rely on the `toXContent` from the base class. Additionally, this allows to make `doXContentBody` final. Also, toXContent is still overridden only to make it final.
@javanna javanna added >enhancement :Search/Search Search-related issues that do not fall into other categories v8.0.0 v7.10.0 labels Jul 21, 2020
@javanna javanna requested a review from romseygeek July 21, 2020 11:50
@elasticmachine
Copy link
Copy Markdown
Collaborator

Pinging @elastic/es-search (:Search/Search)

Copy link
Copy Markdown
Contributor

@romseygeek romseygeek left a comment

Choose a reason for hiding this comment

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

LGTM, thanks @javanna!

@javanna javanna merged commit 1cf9eac into elastic:master Jul 21, 2020
javanna added a commit that referenced this pull request Jul 21, 2020
ParametrizedFieldMapper overrides `toXContent` from `FieldMapper`, yet it could override `doXContentBody` and rely on the `toXContent` from the base class. Additionally, this allows to make `doXContentBody` final. Also, toXContent is still overridden only to make it final.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

>enhancement :Search/Search Search-related issues that do not fall into other categories Team:Search Meta label for search team v7.10.0 v8.0.0-alpha1

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants