Skip to content

Commit 1fd454a

Browse files
committed
Fix New Sonar Issue
1 parent ec6c6b3 commit 1fd454a

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/DelegatingByTopicSerialization.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ private void processMap(Map<String, ?> configs, boolean isKey, String configKey,
156156
protected void build(Map<String, ?> configs, boolean isKey, String configKey, Object delegate, Pattern pattern) {
157157

158158
if (isInstance(delegate)) {
159-
if (pattern != null && !this.patterns.add(pattern.pattern())) {
159+
if (!this.patterns.add(pattern.pattern())) {
160160
LOGGER.debug(() -> "Delegate already configured for " + pattern.pattern());
161161
return;
162162
}

0 commit comments

Comments
 (0)