C0urante commented on a change in pull request #11369:
URL: https://github.com/apache/kafka/pull/11369#discussion_r718558688



##########
File path: 
connect/runtime/src/test/java/org/apache/kafka/connect/integration/MonitorableSourceConnector.java
##########
@@ -114,8 +114,8 @@ public void start(Map<String, String> props) {
             taskId = props.get("task.id");
             connectorName = props.get("connector.name");
             topicName = props.getOrDefault(TOPIC_CONFIG, "sequential-topic");
-            throughput = Long.valueOf(props.getOrDefault("throughput", "-1"));
-            batchSize = 
Integer.valueOf(props.getOrDefault("messages.per.poll", "1"));
+            throughput = Long.parseLong(props.getOrDefault("throughput", 
"-1"));
+            batchSize = 
Integer.parseInt(props.getOrDefault("messages.per.poll", "1"));

Review comment:
       My IDE was nagging me about unnecessary boxing.




-- 
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


Reply via email to