Skip to content

Allow method chaining in Processor.Builder #910

Open
@gregorko

Description

@gregorko

Description

Return type of methods in Processor.Builder prevent method chaining.

Example:

co.elastic.clients.elasticsearch.ingest.Processor.of(b -> b
    .attachment(a -> a)
    .remove(r -> r)
)

This will not compile since attachment() and all other methods return ObjectBuilder<Processor> instead of Builder

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions