Skip to content

Commit cfc000c

Browse files
author
Daniil Zulin
committed
Replaced all synchronized blocks with Locks
1 parent 0141d64 commit cfc000c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

tests/junit5-support/src/main/java/tech/ydb/test/junit5/GrpcTransportExtension.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ public void afterEach(ExtensionContext ec) throws Exception {
6565
holder.after(ec);
6666
}
6767

68-
private class Holder {
68+
private static class Holder {
6969
private final Lock holderLock = new ReentrantLock();
7070

7171
private YdbHelper helper = null;

tests/junit5-support/src/main/java/tech/ydb/test/junit5/YdbHelperExtension.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ public void afterEach(ExtensionContext ec) throws Exception {
6363
holder.after(ec);
6464
}
6565

66-
private class Holder {
66+
private static class Holder {
6767
private final Lock holderLock = new ReentrantLock();
6868

6969
private YdbHelper helper = null;

0 commit comments

Comments
 (0)