chia7712 commented on code in PR #20214: URL: https://github.com/apache/kafka/pull/20214#discussion_r2245342443
########## trogdor/src/main/java/org/apache/kafka/trogdor/rest/TaskRequest.java: ########## @@ -23,14 +23,13 @@ /** * The request to /coordinator/tasks/{taskId} */ -public class TaskRequest { - private final String taskId; - +public record TaskRequest(String taskId) { @JsonCreator public TaskRequest(@JsonProperty("taskId") String taskId) { this.taskId = taskId == null ? "" : taskId; } + @Override @JsonProperty Review Comment: the name `taskId` is same as the method name, so are those annotations really necessary? -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: jira-unsubscr...@kafka.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org