Skip to content

Commit b1b8cb6

Browse files
committed
Remove some errorprone warnings
1 parent aeb42cf commit b1b8cb6

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/main/java/se/uu/it/dtlsfuzzer/components/sul/core/config/TlsSulClientConfig.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,15 +57,15 @@ public SulConfig cloneWithThreadId(int threadId) {
5757
if (clone.command.contains("-starterAddress localhost:")) {
5858
int adapterPort = this.sulAdapterConfig.getAdapterPort();
5959
int newAdapterPort = adapterPort + threadId;
60-
clone.command = clone.command.replace("-starterAddress localhost:"+adapterPort, "-starterAddress localhost:"+(newAdapterPort));
60+
clone.command = clone.command.replace("-starterAddress localhost:"+adapterPort, "-starterAddress localhost:"+newAdapterPort);
6161
clone.sulAdapterConfig = new SulAdapterConfigStandard(newAdapterPort, this.sulAdapterConfig.getAdapterAddress());
6262
}
6363

6464
// JSSE-12-0-2 related
6565
if (clone.command.contains("-threadStarterIpPort localhost:")) {
6666
int adapterPort = this.sulAdapterConfig.getAdapterPort();
6767
int newAdapterPort = adapterPort + threadId;
68-
clone.command = clone.command.replace("-threadStarterIpPort localhost:"+adapterPort, "-threadStarterIpPort localhost:"+(newAdapterPort));
68+
clone.command = clone.command.replace("-threadStarterIpPort localhost:"+adapterPort, "-threadStarterIpPort localhost:"+newAdapterPort);
6969
clone.sulAdapterConfig = new SulAdapterConfigStandard(newAdapterPort, this.sulAdapterConfig.getAdapterAddress());
7070
}
7171

src/main/java/se/uu/it/dtlsfuzzer/components/sul/core/config/TlsSulServerConfig.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,15 +67,15 @@ public SulConfig cloneWithThreadId(int threadId) {
6767
if (clone.command.contains("-starterAddress localhost:")) {
6868
int adapterPort = this.sulAdapterConfig.getAdapterPort();
6969
int newAdapterPort = adapterPort + threadId;
70-
clone.command = clone.command.replace("-starterAddress localhost:"+adapterPort, "-starterAddress localhost:"+(newAdapterPort));
70+
clone.command = clone.command.replace("-starterAddress localhost:"+adapterPort, "-starterAddress localhost:"+newAdapterPort);
7171
clone.sulAdapterConfig = new SulAdapterConfigStandard(newAdapterPort, this.sulAdapterConfig.getAdapterAddress());
7272
}
7373

7474
// JSSE-12-0-2 related
7575
if (clone.command.contains("-threadStarterIpPort localhost:")) {
7676
int adapterPort = this.sulAdapterConfig.getAdapterPort();
7777
int newAdapterPort = adapterPort + threadId;
78-
clone.command = clone.command.replace("-threadStarterIpPort localhost:"+adapterPort, "-threadStarterIpPort localhost:"+(newAdapterPort));
78+
clone.command = clone.command.replace("-threadStarterIpPort localhost:"+adapterPort, "-threadStarterIpPort localhost:"+newAdapterPort);
7979
clone.sulAdapterConfig = new SulAdapterConfigStandard(newAdapterPort, this.sulAdapterConfig.getAdapterAddress());
8080
}
8181

0 commit comments

Comments
 (0)