See gh-29408
@ -89,7 +89,7 @@ public class SessionDisconnectEvent extends AbstractSubProtocolEvent {
@Override
public String toString() {
return "SessionDisconnectEvent[sessionId=" + this.sessionId + ", " + this.status.toString() + "]";
return "SessionDisconnectEvent[sessionId=" + this.sessionId + ", " + this.status + "]";
}
@ -244,7 +244,7 @@ public class ConvertingEncoderDecoderSupportTests {
private static class MyTypeToStringConverter implements Converter<MyType, String> {
public String convert(MyType source) {
return "_" + source.toString();
return "_" + source;
@ -252,7 +252,7 @@ public class ConvertingEncoderDecoderSupportTests {
private static class MyTypeToBytesConverter implements Converter<MyType, byte[]> {
public byte[] convert(MyType source) {
return ("~" + source.toString()).getBytes();
return ("~" + source).getBytes();
@ -91,7 +91,7 @@ public class RestTemplateXhrTransportTests {
for (int i = 0; i < 2048; i++) {
sb.append('h');
String body = sb.toString() + "\n" + "o\n" + "a[\"foo\"]\n" + "c[3000,\"Go away!\"]";
String body = sb + "\n" + "o\n" + "a[\"foo\"]\n" + "c[3000,\"Go away!\"]";
ClientHttpResponse response = response(HttpStatus.OK, body);
connect(response);