Skip to content

Commit cad22f6

Browse files
committed
restore fixes related to javadoc
1 parent aaeed4f commit cad22f6

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

connect/json/src/main/java/org/apache/kafka/connect/json/JsonConverter.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@
5959

6060
/**
6161
* Implementation of {@link Converter} and {@link HeaderConverter} that uses JSON to store schemas and objects. By
62-
* default, this converter will serialize Connect keys, values, and headers with schemas, although this can be disabled with
62+
* default this converter will serialize Connect keys, values, and headers with schemas, although this can be disabled with
6363
* the {@link JsonConverterConfig#SCHEMAS_ENABLE_CONFIG schemas.enable} configuration option.
6464
* <p>
6565
* This implementation currently does nothing with the topic names or header keys.
@@ -127,7 +127,7 @@ public class JsonConverter implements Converter, HeaderConverter, Versioned {
127127
throw new DataException("Structs should be encoded as JSON objects, but found " + value.getNodeType());
128128

129129
// We only have ISchema here but need Schema, so we need to materialize the actual schema. Using ISchema
130-
// avoids having to materialize the schema for non-Struct types, but it cannot be avoided for Structs since
130+
// avoids having to materialize the schema for non-Struct types but it cannot be avoided for Structs since
131131
// they require a schema to be provided at construction. However, the schema is only a SchemaBuilder during
132132
// translation of schemas to JSON; during the more common translation of data to JSON, the call to schema.schema()
133133
// just returns the schema Object and has no overhead.
@@ -338,7 +338,7 @@ public SchemaAndValue toConnectData(String topic, byte[] value) {
338338
" If you are trying to deserialize plain JSON data, set schemas.enable=false in your converter configuration.");
339339

340340
// The deserialized data should either be an envelope object containing the schema and the payload or the schema
341-
// was stripped during serialization, and we need to fill in an all-encompassing schema.
341+
// was stripped during serialization and we need to fill in an all-encompassing schema.
342342
if (!config.schemasEnabled()) {
343343
ObjectNode envelope = JSON_NODE_FACTORY.objectNode();
344344
envelope.set(JsonSchema.ENVELOPE_SCHEMA_FIELD_NAME, null);
@@ -569,7 +569,7 @@ private JsonNode convertToJsonWithoutEnvelope(Schema schema, Object value) {
569569
*/
570570
private JsonNode convertToJson(Schema schema, Object value) {
571571
if (value == null) {
572-
if (schema == null) // Any schema is valid, and we don't have a default, so treat this as an optional schema
572+
if (schema == null) // Any schema is valid and we don't have a default, so treat this as an optional schema
573573
return null;
574574
if (schema.defaultValue() != null && config.replaceNullWithDefault())
575575
return convertToJson(schema, schema.defaultValue());

0 commit comments

Comments
 (0)