kkonstantine commented on a change in pull request #9541:
URL: https://github.com/apache/kafka/pull/9541#discussion_r667225730
##########
File path:
connect/api/src/main/java/org/apache/kafka/connect/data/ConnectSchema.java
##########
@@ -221,13 +221,7 @@ public static void validateValue(String name, Schema
schema, Object value) {
return;
}
- List<Class<?>> expectedClasses = expectedClassesFor(schema);
-
- if (expectedClasses == null)
- throw new DataException("Invalid Java object for schema type " +
schema.type()
- + ": " + value.getClass()
- + " for field: \"" + name + "\"");
-
+ List<Class> expectedClasses = expectedClassesFor(schema);
Review comment:
```suggestion
List<Class<?>> expectedClasses = expectedClassesFor(schema);
```
--
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]