Skip to content

Commit dac65a0

Browse files
committed
Fix effectively final lambda capture
1 parent 8734244 commit dac65a0

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

tests/languages/android/Tests.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,6 @@ public void tearDown() {
7777
}
7878

7979
@Test
80-
@Throws(IOException.class)
8180
public void test() throws IOException {
8281
Client client = new Client(ApplicationProvider.getApplicationContext())
8382
.setEndpointRealtime("wss://demo.appwrite.io/v1")
@@ -89,10 +88,10 @@ public void test() throws IOException {
8988
Bar bar = new Bar(client);
9089
General general = new General(client);
9190
Realtime realtime = new Realtime(client);
92-
String realtimeResponse = "Realtime failed!";
91+
String[] realtimeResponse = {"Realtime failed!"};
9392

9493
realtime.subscribe("tests", TestPayload.class, payload -> {
95-
realtimeResponse = payload.getResponse();
94+
realtimeResponse[0] = payload.getResponse();
9695
return null;
9796
});
9897

0 commit comments

Comments
 (0)