Skip to content

Commit 2e49743

Browse files
authored
Remove conflicting static method from Metadata.Custom interface (#13869)
Signed-off-by: Shivansh Arora <[email protected]>
1 parent db5240e commit 2e49743

File tree

2 files changed

+1
-6
lines changed

2 files changed

+1
-6
lines changed

server/src/main/java/org/opensearch/cluster/metadata/Metadata.java

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -180,11 +180,6 @@ static Custom fromXContent(XContentParser parser, String name) throws IOExceptio
180180
// handling any Exception is caller's responsibility
181181
return parser.namedObject(Custom.class, name, null);
182182
}
183-
184-
static Custom fromXContent(XContentParser parser) throws IOException {
185-
String currentFieldName = parser.currentName();
186-
return fromXContent(parser, currentFieldName);
187-
}
188183
}
189184

190185
public static final Setting<Integer> DEFAULT_REPLICA_COUNT_SETTING = Setting.intSetting(

server/src/main/java/org/opensearch/gateway/remote/RemoteClusterStateService.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ public class RemoteClusterStateService implements Closeable {
147147
public static final ChecksumBlobStoreFormat<Metadata.Custom> CUSTOM_METADATA_FORMAT = new ChecksumBlobStoreFormat<>(
148148
"custom",
149149
METADATA_NAME_FORMAT,
150-
Metadata.Custom::fromXContent
150+
null // no need of reader here, as this object is only used to write/serialize the object
151151
);
152152

153153
/**

0 commit comments

Comments
 (0)