File tree 2 files changed +4
-6
lines changed
spring-kafka/src/main/java/org/springframework/kafka 2 files changed +4
-6
lines changed Original file line number Diff line number Diff line change 1
1
/*
2
- * Copyright 2018-2023 the original author or authors.
2
+ * Copyright 2018-2025 the original author or authors.
3
3
*
4
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
5
* you may not use this file except in compliance with the License.
14
14
* limitations under the License.
15
15
*/
16
16
17
- /**
18
- * das
19
- */
20
17
package org .springframework .kafka .annotation ;
21
18
22
19
Original file line number Diff line number Diff line change 1
1
/*
2
- * Copyright 2018-2024 the original author or authors.
2
+ * Copyright 2018-2025 the original author or authors.
3
3
*
4
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
5
* you may not use this file except in compliance with the License.
26
26
* Utility class that suffixes strings.
27
27
*
28
28
* @author Tomaz Fernandes
29
+ * @author Ngoc Nhan
29
30
* @since 2.7
30
31
*
31
32
*/
@@ -42,7 +43,7 @@ public String maybeAddTo(String source) {
42
43
if (!StringUtils .hasText (this .suffix )) {
43
44
return source ;
44
45
}
45
- return source != null && StringUtils .hasText (source ) // Only suffix if there's text
46
+ return StringUtils .hasText (source ) // Only suffix if there's text
46
47
? source .concat (this .suffix )
47
48
: source ;
48
49
}
You can’t perform that action at this time.
0 commit comments