Skip to content

Commit 85eb602

Browse files
Polishing
Signed-off-by: Tran Ngoc Nhan <ngocnhan.tran1996@gmail.com>
1 parent 94906df commit 85eb602

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed

spring-kafka/src/main/java/org/springframework/kafka/annotation/DltHandler.java

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2018-2023 the original author or authors.
2+
* Copyright 2018-2025 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -14,9 +14,6 @@
1414
* limitations under the License.
1515
*/
1616

17-
/**
18-
* das
19-
*/
2017
package org.springframework.kafka.annotation;
2118

2219

spring-kafka/src/main/java/org/springframework/kafka/support/Suffixer.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2018-2024 the original author or authors.
2+
* Copyright 2018-2025 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -42,7 +42,7 @@ public String maybeAddTo(String source) {
4242
if (!StringUtils.hasText(this.suffix)) {
4343
return source;
4444
}
45-
return source != null && StringUtils.hasText(source) // Only suffix if there's text
45+
return StringUtils.hasText(source) // Only suffix if there's text
4646
? source.concat(this.suffix)
4747
: source;
4848
}

0 commit comments

Comments
 (0)