Remove redundant whitespace in exception messages

Closes gh-37277

Signed-off-by: Tran Ngoc Nhan <ngocnhan.tran1996@gmail.com>
This commit is contained in:
Tran Ngoc Nhan
2026-09-20 14:58:09 +02:00
committed by GitHub
parent 48b59dfaec
commit a8608e681b
2 changed files with 2 additions and 2 deletions
@@ -35,7 +35,7 @@ final class StringToCharacterConverter implements Converter<String, @Nullable Ch
}
if (source.length() > 1) {
throw new IllegalArgumentException(
"Can only convert a [String] with length of 1 to a [Character]; string value '" + source + "' has length of " + source.length());
"Can only convert a [String] with length of 1 to a [Character]; string value '" + source + "' has length of " + source.length());
}
return source.charAt(0);
}
@@ -141,7 +141,7 @@ public class BufferingStompDecoder {
if (contentLength != null && contentLength > this.bufferSizeLimit) {
throw new StompConversionException(
"STOMP 'content-length' header value " + this.expectedContentLength +
" exceeds configured buffer size limit " + this.bufferSizeLimit);
" exceeds configured buffer size limit " + this.bufferSizeLimit);
}
if (getBufferSize() > this.bufferSizeLimit) {
throw new StompConversionException("The configured STOMP buffer size limit of " +