Skip to content

Commit 07a2b44

Browse files
committed
Use the TYPE constant for the name here
This makes this class more like SnapshotLifecycleMetadata and IndexLifecycleMetadata, but I don't think this is load bearing code. The previous String literal version was more like EnrichMetadata, so there's prior art for that, but it feels more like an odd duck to me.
1 parent 521f855 commit 07a2b44

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/ingest-geoip/src/main/java/org/elasticsearch/ingest/geoip/IngestGeoIpMetadata.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ public final class IngestGeoIpMetadata implements Metadata.Custom {
4646

4747
@SuppressWarnings("unchecked")
4848
private static final ConstructingObjectParser<IngestGeoIpMetadata, Void> PARSER = new ConstructingObjectParser<>(
49-
"ingest_geoip_metadata",
49+
TYPE,
5050
a -> new IngestGeoIpMetadata(
5151
((List<DatabaseConfigurationMetadata>) a[0]).stream().collect(Collectors.toMap((m) -> m.database().id(), Function.identity()))
5252
)

0 commit comments

Comments
 (0)