File tree Expand file tree Collapse file tree 2 files changed +6
-4
lines changed
android/src/main/java/net/servicestack/client/sse
client/src/main/java/net/servicestack/client/sse Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change 1212import net .servicestack .func .Function ;
1313
1414import java .io .BufferedInputStream ;
15+ import java .io .Closeable ;
1516import java .io .FileNotFoundException ;
1617import java .io .IOException ;
1718import java .io .InputStream ;
3839 * Created by mythz on 2/9/2017.
3940 */
4041
41- public class ServerEventsClient implements AutoCloseable {
42+ public class ServerEventsClient implements Closeable {
4243 private String baseUri ;
4344 private String [] channels ;
4445 private String eventStreamPath ;
@@ -535,7 +536,7 @@ private void processOnHeartbeatMessage(ServerEventMessage e) {
535536 }
536537
537538 @ Override
538- public void close () throws Exception {
539+ public void close () {
539540 stop ();
540541 }
541542
Original file line number Diff line number Diff line change 1212import net .servicestack .func .Function ;
1313
1414import java .io .BufferedInputStream ;
15+ import java .io .Closeable ;
1516import java .io .FileNotFoundException ;
1617import java .io .IOException ;
1718import java .io .InputStream ;
3839 * Created by mythz on 2/9/2017.
3940 */
4041
41- public class ServerEventsClient implements AutoCloseable {
42+ public class ServerEventsClient implements Closeable {
4243 private String baseUri ;
4344 private String [] channels ;
4445 private String eventStreamPath ;
@@ -535,7 +536,7 @@ private void processOnHeartbeatMessage(ServerEventMessage e) {
535536 }
536537
537538 @ Override
538- public void close () throws Exception {
539+ public void close () {
539540 stop ();
540541 }
541542
You can’t perform that action at this time.
0 commit comments