Skip to content

Commit 1291bfa

Browse files
committed
WS-2537: Few more Sonar issues.
1 parent 44c5bd8 commit 1291bfa

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

annotations/src/main/java/com/basistech/rosette/annotations/JacksonMixin.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2017 Basis Technology Corp.
2+
* Copyright 2017-2022 Basis Technology Corp.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -24,4 +24,4 @@
2424
@Retention(RetentionPolicy.SOURCE)
2525
@Target(ElementType.TYPE)
2626
public @interface JacksonMixin {
27-
}
27+
}

api/src/test/java/com/basistech/rosette/api/BasicTest.java

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2017 Basis Technology Corp.
2+
* Copyright 2017-2022 Basis Technology Corp.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -64,11 +64,12 @@ public class BasicTest extends AbstractTest {
6464
private MockServerClient mockServer;
6565
private HttpRosetteAPI api;
6666

67-
private static int getFreePort() {
67+
public BasicTest() throws IOException {
68+
}
69+
70+
private static int getFreePort() throws IOException {
6871
try (ServerSocket socket = new ServerSocket(0)) {
6972
serverPort = socket.getLocalPort();
70-
} catch (IOException e) {
71-
fail("Failed to allocate a port");
7273
}
7374
assertNotEquals(0, serverPort);
7475
return serverPort;

0 commit comments

Comments
 (0)