Pankraz76 commented on code in PR #20214:
URL: https://github.com/apache/kafka/pull/20214#discussion_r2249184091
##########
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:
Thanks for the inspiration. False positive(s) should be covered as well.
- https://github.com/openrewrite/rewrite-static-analysis/pull/684
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]