Skip to content

Commit 3b5e25f

Browse files
Remove deprecated createParser call
1 parent c31762a commit 3b5e25f

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

server/src/main/java/org/elasticsearch/repositories/blobstore/ChecksumBlobStoreFormat.java

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,13 @@ public T deserialize(
208208
} else {
209209
try (
210210
XContentParser parser = XContentType.SMILE.xContent()
211-
.createParser(namedXContentRegistry, LoggingDeprecationHandler.INSTANCE, wrappedStream)
211+
.createParser(
212+
xContentParserConfiguration == null
213+
? XContentParserConfiguration.EMPTY.withRegistry(namedXContentRegistry)
214+
.withDeprecationHandler(LoggingDeprecationHandler.INSTANCE)
215+
: xContentParserConfiguration,
216+
wrappedStream
217+
)
212218
) {
213219
result = reader.apply(projectRepo, parser);
214220
XContentParserUtils.ensureExpectedToken(null, parser.nextToken(), parser);

0 commit comments

Comments
 (0)