Skip to content

Commit

Permalink
fix checkstyle errors
Browse files Browse the repository at this point in the history
Signed-off-by: Kaushal Kumar <[email protected]>
  • Loading branch information
kaushalmahi12 committed Jul 2, 2024
1 parent c5a70e9 commit 42d3494
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,6 @@ public QueryGroup(StreamInput in) throws IOException {
);
}


@Override
public void writeTo(StreamOutput out) throws IOException {
out.writeString(name);
Expand All @@ -119,7 +118,6 @@ private void validateResourceLimits(Map<ResourceType, Object> resourceLimits) {
}
}


@Override
public XContentBuilder toXContent(final XContentBuilder builder, final Params params) throws IOException {
builder.startObject();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -91,13 +91,11 @@ public Version getMinimalSupportedVersion() {
return Version.V_3_0_0;

Check warning on line 91 in server/src/main/java/org/opensearch/cluster/metadata/QueryGroupMetadata.java

View check run for this annotation

Codecov / codecov/patch

server/src/main/java/org/opensearch/cluster/metadata/QueryGroupMetadata.java#L91

Added line #L91 was not covered by tests
}


@Override
public void writeTo(StreamOutput out) throws IOException {
out.writeMap(queryGroups, StreamOutput::writeString, (stream, val) -> val.writeTo(stream));
}


@Override
public XContentBuilder toXContent(XContentBuilder builder, Params params) throws IOException {
for (Map.Entry<String, QueryGroup> entry : queryGroups.entrySet()) {
Expand All @@ -110,13 +108,11 @@ public static QueryGroupMetadata fromXContent(XContentParser parser) throws IOEx
return PARSER.parse(parser, null);

Check warning on line 108 in server/src/main/java/org/opensearch/cluster/metadata/QueryGroupMetadata.java

View check run for this annotation

Codecov / codecov/patch

server/src/main/java/org/opensearch/cluster/metadata/QueryGroupMetadata.java#L108

Added line #L108 was not covered by tests
}


@Override
public Diff<Metadata.Custom> diff(final Metadata.Custom previousState) {
return new QueryGroupMetadataDiff((QueryGroupMetadata) previousState, this);

Check warning on line 113 in server/src/main/java/org/opensearch/cluster/metadata/QueryGroupMetadata.java

View check run for this annotation

Codecov / codecov/patch

server/src/main/java/org/opensearch/cluster/metadata/QueryGroupMetadata.java#L113

Added line #L113 was not covered by tests
}


public static NamedDiff<Metadata.Custom> readDiffFrom(StreamInput in) throws IOException {
return new QueryGroupMetadataDiff(in);

Check warning on line 117 in server/src/main/java/org/opensearch/cluster/metadata/QueryGroupMetadata.java

View check run for this annotation

Codecov / codecov/patch

server/src/main/java/org/opensearch/cluster/metadata/QueryGroupMetadata.java#L117

Added line #L117 was not covered by tests
}
Expand Down Expand Up @@ -171,13 +167,11 @@ public String getWriteableName() {
return TYPE;

Check warning on line 167 in server/src/main/java/org/opensearch/cluster/metadata/QueryGroupMetadata.java

View check run for this annotation

Codecov / codecov/patch

server/src/main/java/org/opensearch/cluster/metadata/QueryGroupMetadata.java#L167

Added line #L167 was not covered by tests
}


@Override
public void writeTo(StreamOutput out) throws IOException {
dataStreamDiff.writeTo(out);
}

Check warning on line 173 in server/src/main/java/org/opensearch/cluster/metadata/QueryGroupMetadata.java

View check run for this annotation

Codecov / codecov/patch

server/src/main/java/org/opensearch/cluster/metadata/QueryGroupMetadata.java#L172-L173

Added lines #L172 - L173 were not covered by tests


@Override
public Metadata.Custom apply(Metadata.Custom part) {
return new QueryGroupMetadata(new HashMap<>(dataStreamDiff.apply(((QueryGroupMetadata) part).queryGroups)));

Check warning on line 177 in server/src/main/java/org/opensearch/cluster/metadata/QueryGroupMetadata.java

View check run for this annotation

Codecov / codecov/patch

server/src/main/java/org/opensearch/cluster/metadata/QueryGroupMetadata.java#L177

Added line #L177 was not covered by tests
Expand Down

0 comments on commit 42d3494

Please sign in to comment.