mirror of https://github.com/apache/kafka.git
fixed checkstyle errors
This commit is contained in:
parent
a70f0f8ce1
commit
a62fb6c645
|
@ -92,7 +92,7 @@
|
|||
<subpackage name="tools">
|
||||
<allow pkg="org.apache.kafka.clients.producer" />
|
||||
<allow pkg="org.apache.kafka.clients.consumer" />
|
||||
<allow pkg="com.fasterxml.jackson.core" />
|
||||
<allow pkg="com.fasterxml.jackson" />
|
||||
<allow pkg="net.sourceforge.argparse4j" />
|
||||
</subpackage>
|
||||
</subpackage>
|
||||
|
|
|
@ -230,7 +230,7 @@ public class VerifiableProducer {
|
|||
try {
|
||||
ObjectMapper mapper = new ObjectMapper();
|
||||
json = mapper.writeValueAsString(data);
|
||||
} catch(JsonProcessingException e) {
|
||||
} catch (JsonProcessingException e) {
|
||||
json = "Bad data can't be written as json: " + e.getMessage();
|
||||
}
|
||||
return json;
|
||||
|
|
Loading…
Reference in New Issue