File tree Expand file tree Collapse file tree 2 files changed +4
-6
lines changed
spring-kafka/src/main/java/org/springframework/kafka Expand file tree Collapse file tree 2 files changed +4
-6
lines changed Original file line number Diff line number Diff line change 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.
1414 * limitations under the License.
1515 */
1616
17- /**
18- * das
19- */
2017package org .springframework .kafka .annotation ;
2118
2219
Original file line number Diff line number Diff line change 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.
2626 * Utility class that suffixes strings.
2727 *
2828 * @author Tomaz Fernandes
29+ * @author Ngoc Nhan
2930 * @since 2.7
3031 *
3132 */
@@ -42,7 +43,7 @@ public String maybeAddTo(String source) {
4243 if (!StringUtils .hasText (this .suffix )) {
4344 return source ;
4445 }
45- return source != null && StringUtils .hasText (source ) // Only suffix if there's text
46+ return StringUtils .hasText (source ) // Only suffix if there's text
4647 ? source .concat (this .suffix )
4748 : source ;
4849 }
You can’t perform that action at this time.
0 commit comments