Skip to content

Commit 52f4f27

Browse files
committed
Remove conflicting static method from Metadata.Custom interface
Signed-off-by: Shivansh Arora <[email protected]>
1 parent b8ccbf2 commit 52f4f27

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
@@ -181,11 +181,6 @@ static Custom fromXContent(XContentParser parser, String name) throws IOExceptio
181181
// handling any Exception is caller's responsibility
182182
return parser.namedObject(Custom.class, name, null);
183183
}
184-
185-
static Custom fromXContent(XContentParser parser) throws IOException {
186-
String currentFieldName = parser.currentName();
187-
return fromXContent(parser, currentFieldName);
188-
}
189184
}
190185

191186
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
@@ -148,7 +148,7 @@ public class RemoteClusterStateService implements Closeable {
148148
public static final ChecksumBlobStoreFormat<Metadata.Custom> CUSTOM_METADATA_FORMAT = new ChecksumBlobStoreFormat<>(
149149
"custom",
150150
METADATA_NAME_FORMAT,
151-
Metadata.Custom::fromXContent
151+
null // no need to reader here, as this object is only used to write/serialize the object
152152
);
153153

154154
/**

0 commit comments

Comments
 (0)