Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2018-2023 the original author or authors.
* Copyright 2018-2025 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand All @@ -14,9 +14,6 @@
* limitations under the License.
*/

/**
* das
*/
package org.springframework.kafka.annotation;


Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2018-2024 the original author or authors.
* Copyright 2018-2025 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand All @@ -26,6 +26,7 @@
* Utility class that suffixes strings.
*
* @author Tomaz Fernandes
* @author Ngoc Nhan
* @since 2.7
*
*/
Expand All @@ -42,7 +43,7 @@ public String maybeAddTo(String source) {
if (!StringUtils.hasText(this.suffix)) {
return source;
}
return source != null && StringUtils.hasText(source) // Only suffix if there's text
return StringUtils.hasText(source) // Only suffix if there's text
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

When making a code change, please add your name as the author to the class. Thanks!

? source.concat(this.suffix)
: source;
}
Expand Down