Skip to content

Commit 911091a

Browse files
authored
Fix violations of Sonar rule 2142 (#488)
1 parent fad2a58 commit 911091a

File tree

4 files changed

+4
-0
lines changed

4 files changed

+4
-0
lines changed

src/test/java/com/networknt/schema/BaseSuiteJsonSchemaTest.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ public static void tearDown() throws Exception {
6060
try {
6161
Thread.sleep(100);
6262
} catch (InterruptedException ignored) {
63+
Thread.currentThread().interrupt();
6364

6465
}
6566
server.stop();

src/test/java/com/networknt/schema/Issue425Test.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ public static void tearDown() throws Exception {
4646
try {
4747
Thread.sleep(100);
4848
} catch (InterruptedException ignored) {
49+
Thread.currentThread().interrupt();
4950

5051
}
5152
server.stop();

src/test/java/com/networknt/schema/Issue428Test.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ public static void tearDown() throws Exception {
4646
try {
4747
Thread.sleep(100);
4848
} catch (InterruptedException ignored) {
49+
Thread.currentThread().interrupt();
4950

5051
}
5152
server.stop();

src/test/java/com/networknt/schema/OpenAPI30JsonSchemaTest.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ public static void tearDown() throws Exception {
4646
try {
4747
Thread.sleep(100);
4848
} catch (InterruptedException ignored) {
49+
Thread.currentThread().interrupt();
4950

5051
}
5152
server.stop();

0 commit comments

Comments
 (0)