Skip to content

Commit e515419

Browse files
committed
Fix errorprone
1 parent 946f2ab commit e515419

File tree

4 files changed

+15
-1
lines changed

4 files changed

+15
-1
lines changed

instrumentation/play/play-ws/play-ws-common/testing/src/main/java/io/opentelemetry/javaagent/instrumentation/playws/PlayJavaStreamedWsClientBaseTest.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,9 @@ class PlayJavaStreamedWsClientBaseTest extends PlayWsClientBaseTest<StandaloneWS
2323
private static StandaloneWSClient wsClientWithReadTimeout;
2424

2525
@BeforeEach
26+
@Override
2627
void setup() {
28+
super.setup();
2729
wsClient = new StandaloneAhcWSClient(asyncHttpClient, materializer);
2830
wsClientWithReadTimeout =
2931
new StandaloneAhcWSClient(asyncHttpClientWithReadTimeout, materializer);
@@ -32,13 +34,15 @@ void setup() {
3234
}
3335

3436
@AfterEach
35-
public void tearDown() throws IOException {
37+
@Override
38+
void tearDown() throws IOException {
3639
if (wsClient != null) {
3740
wsClient.close();
3841
}
3942
if (wsClientWithReadTimeout != null) {
4043
wsClientWithReadTimeout.close();
4144
}
45+
super.tearDown();
4246
}
4347

4448
@Override

instrumentation/play/play-ws/play-ws-common/testing/src/main/java/io/opentelemetry/javaagent/instrumentation/playws/PlayJavaWsClientBaseTest.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ public class PlayJavaWsClientBaseTest extends PlayWsClientBaseTest<StandaloneWSR
2121
private static StandaloneWSClient wsClientWithReadTimeout;
2222

2323
@BeforeEach
24+
@Override
2425
void setup() {
2526
super.setup();
2627
wsClient = new StandaloneAhcWSClient(asyncHttpClient, materializer);
@@ -31,6 +32,7 @@ void setup() {
3132
}
3233

3334
@AfterEach
35+
@Override
3436
void tearDown() throws IOException {
3537
if (wsClient != null) {
3638
wsClient.close();

instrumentation/play/play-ws/play-ws-common/testing/src/main/java/io/opentelemetry/javaagent/instrumentation/playws/PlayScalaStreamedWsClientBaseTest.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,9 @@ public class PlayScalaStreamedWsClientBaseTest extends PlayWsClientBaseTest<Stan
3030
private static StandaloneWSClient wsClientWithReadTimeout;
3131

3232
@BeforeEach
33+
@Override
3334
void setup() {
35+
super.setup();
3436
wsClient = new StandaloneAhcWSClient(asyncHttpClient, materializer);
3537
wsClientWithReadTimeout =
3638
new StandaloneAhcWSClient(asyncHttpClientWithReadTimeout, materializer);
@@ -39,13 +41,15 @@ void setup() {
3941
}
4042

4143
@AfterEach
44+
@Override
4245
void tearDown() throws IOException {
4346
if (wsClient != null) {
4447
wsClient.close();
4548
}
4649
if (wsClientWithReadTimeout != null) {
4750
wsClientWithReadTimeout.close();
4851
}
52+
super.tearDown();
4953
}
5054

5155
@Override

instrumentation/play/play-ws/play-ws-common/testing/src/main/java/io/opentelemetry/javaagent/instrumentation/playws/PlayScalaWsClientBaseTest.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,9 @@ public class PlayScalaWsClientBaseTest extends PlayWsClientBaseTest<StandaloneWS
3232
private static StandaloneWSClient wsClientWithReadTimeout;
3333

3434
@BeforeEach
35+
@Override
3536
void setup() {
37+
super.setup();
3638
wsClient = new StandaloneAhcWSClient(asyncHttpClient, materializer);
3739
wsClientWithReadTimeout =
3840
new StandaloneAhcWSClient(asyncHttpClientWithReadTimeout, materializer);
@@ -41,13 +43,15 @@ void setup() {
4143
}
4244

4345
@AfterEach
46+
@Override
4447
void tearDown() throws IOException {
4548
if (wsClient != null) {
4649
wsClient.close();
4750
}
4851
if (wsClientWithReadTimeout != null) {
4952
wsClientWithReadTimeout.close();
5053
}
54+
super.tearDown();
5155
}
5256

5357
@Override

0 commit comments

Comments
 (0)