mirror of
https://github.com/spring-projects/spring-framework.git
synced 2026-09-23 22:59:03 +00:00
Merge branch '7.0.x'
This commit is contained in:
+1
-1
@@ -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);
|
||||
}
|
||||
|
||||
+1
-1
@@ -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 " +
|
||||
|
||||
Reference in New Issue
Block a user