Skip to content

Commit 84588a8

Browse files
izeyegaryrussell
authored andcommitted
Apply addTargetPackageToTrusted() consistently in JsonDeserializer
1 parent 2f61ebf commit 84588a8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

spring-kafka/src/main/java/org/springframework/kafka/support/serializer/JsonDeserializer.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,8 +137,8 @@ else if (configs.get(DEFAULT_VALUE_TYPE) instanceof String) {
137137
else {
138138
throw new IllegalStateException(DEFAULT_VALUE_TYPE + " must be Class or String");
139139
}
140-
addTargetPackageToTrusted();
141140
}
141+
addTargetPackageToTrusted();
142142
}
143143
catch (ClassNotFoundException | LinkageError e) {
144144
throw new IllegalStateException(e);

0 commit comments

Comments
 (0)