File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
spring-websocket/src/main/java/org/springframework/web/socket/sockjs/frame Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -45,7 +45,7 @@ public class SockJsFrame {
4545 private static final SockJsFrame CLOSE_ANOTHER_CONNECTION_OPEN_FRAME =
4646 closeFrame (2010 , "Another connection still open" );
4747
48- private static final String truncatedSuffix = "...(truncated)" ;
48+ private static final String TRUNCATED_SUFFIX = "...(truncated)" ;
4949
5050 private final SockJsFrameType type ;
5151
@@ -135,7 +135,7 @@ public String toString() {
135135 int contentLength = this .content .length ();
136136 int truncatedContentLength = Math .min (contentLength , maxLength );
137137
138- int extra = (contentLength > maxLength ? truncatedSuffix .length () : 0 );
138+ int extra = (contentLength > maxLength ? TRUNCATED_SUFFIX .length () : 0 );
139139
140140 StringBuilder sb = new StringBuilder (truncatedContentLength + extra );
141141
@@ -149,7 +149,7 @@ public String toString() {
149149 }
150150
151151 if (contentLength > maxLength ) {
152- sb .append (truncatedSuffix );
152+ sb .append (TRUNCATED_SUFFIX );
153153 }
154154
155155 return "SockJsFrame content='" + sb + "'" ;
You can’t perform that action at this time.
0 commit comments