Chia-Ping Tsai created KAFKA-21692:
--------------------------------------
Summary: Replace Json.parseFull with Json.tryParseFull and remove
parseFull
Key: KAFKA-21692
URL: https://issues.apache.org/jira/browse/KAFKA-21692
Project: Kafka
Issue Type: Improvement
Reporter: Chia-Ping Tsai
Assignee: Chia-Ping Tsai
All callers of `Json.parseFull` throw an exception when the returned Optional
is empty, so the Optional adds nothing. We could switch them to
`Json.tryParseFull` and remove `parseFull`.
Callers: `DeleteRecordsCommand`, `LeaderElectionCommand`,
`ReassignPartitionsCommand`, and `JsonTest`.
Please keep the error users see today when the input is not valid JSON.
This is a follow-up to KAFKA-21412.
--
This message was sent by Atlassian Jira
(v10.3.26#10030026)