elasticsearch/modules/mapper-extras
Gal Lalouche a6e47ae85b
Refactor FieldCapabilities creation by adding a proper builder object (#121310)
Reduce boilerplate associated with creating `FieldCapabilities` instances.
Since it's a class with a huge number of fields, it makes sense to define a builder object, as that can also help with all the Boolean and null blindness going on.
Note while there is a static Builder class in `FieldCapabilities`, it is not a proper builder object (no setters, still need to pass a lot of otherwise default parameters) and also package-private. To avoid changing that, I defined a new `FieldCapabilitiesBuilder` class. I also went over the code and refactored places which used the old constructor.
2025-03-05 13:09:36 +01:00
..
src Refactor FieldCapabilities creation by adding a proper builder object (#121310) 2025-03-05 13:09:36 +01:00
build.gradle Update Gradle wrapper to 8.12 (#118683) 2024-12-30 15:34:24 +01:00