Skip to content

Commit 6744a53

Browse files
fix nits
Signed-off-by: Antonio Pedro <[email protected]>
1 parent 1c5ef6e commit 6744a53

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/main/java/io/strimzi/kafka/bridge/http/converter/HttpJsonMessageConverter.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ public List<ProducerRecord<byte[], byte[]>> toKafkaRecords(String kafkaTopic, In
7575
JsonNode json = JsonUtils.bytesToJson(messages);
7676
ArrayNode jsonArray = (ArrayNode) json.get("records");
7777

78-
for (JsonNode jsonObj : jsonArray) {
78+
for (JsonNode jsonObj: jsonArray) {
7979
records.add(toKafkaRecord(kafkaTopic, partition, JsonUtils.jsonToBytes(jsonObj)));
8080
}
8181
return records;
@@ -106,7 +106,7 @@ public byte[] toMessages(ConsumerRecords<byte[], byte[]> records) {
106106

107107
ArrayNode headers = JsonUtils.createArrayNode();
108108

109-
for (Header kafkaHeader : record.headers()) {
109+
for (Header kafkaHeader: record.headers()) {
110110
ObjectNode header = JsonUtils.createObjectNode();
111111

112112
header.put("key", kafkaHeader.key());

src/test/java/io/strimzi/kafka/bridge/http/ProducerIT.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,7 @@ void sendSimpleMessageToPartition(VertxTestContext context) throws InterruptedEx
107107
KafkaFuture<Void> future = adminClientFacade.createTopic(topic, 2, 1);
108108

109109
String value = "message-value";
110+
110111
int partition = 1;
111112

112113
JsonArray records = new JsonArray();
@@ -208,7 +209,6 @@ void sendSimpleMessageWithKey(VertxTestContext context) throws InterruptedExcept
208209
KafkaFuture<Void> future = adminClientFacade.createTopic(topic, 2, 1);
209210

210211
String value = "message-value";
211-
212212
String key = "my-key";
213213

214214
JsonArray records = new JsonArray();

0 commit comments

Comments
 (0)