Skip to content

Radundant objects of FetchSourceContext class #20743

@urmichm

Description

@urmichm

Is your feature request related to a problem? Please describe

Fallow up of #20612
Usage of boolean constructor is redundant

Since there are already the immutable objects:

public static final FetchSourceContext FETCH_SOURCE = new FetchSourceContext(true);

public static final FetchSourceContext DO_NOT_FETCH_SOURCE = new FetchSourceContext(false);

Extra (unnecessary) objects inflate the memory.

Describe the solution you'd like

Make the boolean constructor private and use FETCH_SOURCE and DO_NOT_FETCH_SOURCE

Related component

Other

Describe alternatives you've considered

No response

Additional context

No response

Metadata

Metadata

Assignees

Labels

OtherenhancementEnhancement or improvement to existing feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions