Skip to content

Commit

Permalink
Add @OverRide annotations to methods in EnrichPlugin class (#76873)
Browse files Browse the repository at this point in the history
  • Loading branch information
weizijun authored and martijnvg committed Oct 11, 2021
1 parent 7630301 commit c4cda1c
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,7 @@ protected XPackLicenseState getLicenseState() {
return XPackPlugin.getSharedLicenseState();
}

@Override
public List<ActionHandler<? extends ActionRequest, ? extends ActionResponse>> getActions() {
return Arrays.asList(
new ActionHandler<>(GetEnrichPolicyAction.INSTANCE, TransportGetEnrichPolicyAction.class),
Expand All @@ -165,6 +166,7 @@ protected XPackLicenseState getLicenseState() {
);
}

@Override
public List<RestHandler> getRestHandlers(
Settings settings,
RestController restController,
Expand Down Expand Up @@ -249,6 +251,7 @@ public List<NamedWriteableRegistry.Entry> getNamedWriteables() {
);
}

@Override
public List<NamedXContentRegistry.Entry> getNamedXContent() {
return Arrays.asList(
new NamedXContentRegistry.Entry(Metadata.Custom.class, new ParseField(EnrichMetadata.TYPE), EnrichMetadata::fromXContent)
Expand Down

0 comments on commit c4cda1c

Please sign in to comment.