Skip to content

Commit f1acd28

Browse files
committed
XhrTransport implementations do not need to redeclare interface when extending from AbstractXhrTransport
(cherry picked from commit df0b26f)
1 parent aa0f117 commit f1acd28

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

spring-websocket/src/main/java/org/springframework/web/socket/sockjs/client/JettyXhrTransport.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@
4444
import org.springframework.web.socket.sockjs.SockJsTransportFailureException;
4545
import org.springframework.web.socket.sockjs.frame.SockJsFrame;
4646

47-
4847
/**
4948
* An XHR transport based on Jetty's {@link org.eclipse.jetty.client.HttpClient}.
5049
*
@@ -61,7 +60,7 @@
6160
* @author Rossen Stoyanchev
6261
* @since 4.1
6362
*/
64-
public class JettyXhrTransport extends AbstractXhrTransport implements XhrTransport, Lifecycle {
63+
public class JettyXhrTransport extends AbstractXhrTransport implements Lifecycle {
6564

6665
private final HttpClient httpClient;
6766

@@ -105,6 +104,7 @@ public boolean isRunning() {
105104
return this.httpClient.isRunning();
106105
}
107106

107+
108108
@Override
109109
protected ResponseEntity<String> executeInfoRequestInternal(URI infoUrl) {
110110
return executeRequest(infoUrl, HttpMethod.GET, getRequestHeaders(), null);

spring-websocket/src/main/java/org/springframework/web/socket/sockjs/client/RestTemplateXhrTransport.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2014 the original author or authors.
2+
* Copyright 2002-2015 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -50,7 +50,7 @@
5050
* @author Rossen Stoyanchev
5151
* @since 4.1
5252
*/
53-
public class RestTemplateXhrTransport extends AbstractXhrTransport implements XhrTransport {
53+
public class RestTemplateXhrTransport extends AbstractXhrTransport {
5454

5555
private final RestOperations restTemplate;
5656

spring-websocket/src/main/java/org/springframework/web/socket/sockjs/client/UndertowXhrTransport.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@
8585
* @since 4.1.2
8686
* @see org.xnio.Options
8787
*/
88-
public class UndertowXhrTransport extends AbstractXhrTransport implements XhrTransport {
88+
public class UndertowXhrTransport extends AbstractXhrTransport {
8989

9090
private static final AttachmentKey<String> RESPONSE_BODY = AttachmentKey.create(String.class);
9191

0 commit comments

Comments
 (0)