Skip to content

Commit b3878ac

Browse files
committed
Update dependencies; fix spotbugs findings
1 parent e8a35d3 commit b3878ac

File tree

14 files changed

+39
-34
lines changed

14 files changed

+39
-34
lines changed

build.gradle.kts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,12 @@ plugins {
66
id("maven-publish")
77
id("com.github.mfarsikov.kewt-versioning") version "1.0.0"
88
id("se.patrikerdes.use-latest-versions") version "0.2.18"
9-
id("com.github.ben-manes.versions") version "0.48.0"
9+
id("com.github.ben-manes.versions") version "0.49.0"
1010
id("pmd")
11-
id("com.github.spotbugs") version "5.1.3"
11+
id("com.github.spotbugs") version "5.2.3"
1212
id("org.gradle.signing")
1313
id("io.github.gradle-nexus.publish-plugin") version "1.3.0"
14-
id("com.adarshr.test-logger") version "3.2.0"
14+
id("com.adarshr.test-logger") version "4.0.0"
1515
}
1616

1717
allprojects {

coap-cli/build.gradle.kts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ dependencies {
1414
implementation("info.picocli:picocli:4.7.5")
1515

1616
testImplementation("org.mockito:mockito-core:4.11.0")
17-
testImplementation("org.junit.jupiter:junit-jupiter-api:5.10.0")
18-
testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine:5.10.0")
17+
testImplementation("org.junit.jupiter:junit-jupiter-api:5.10.1")
18+
testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine:5.10.1")
1919
testImplementation("org.awaitility:awaitility:4.2.0")
2020
testImplementation(testFixtures(project(":coap-core")))
2121
}

coap-core/build.gradle.kts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,14 @@ description = "coap-core"
99
dependencies {
1010
api("org.slf4j:slf4j-api:2.0.9")
1111

12-
testFixturesApi("org.junit.jupiter:junit-jupiter-api:5.10.0")
12+
testFixturesApi("org.junit.jupiter:junit-jupiter-api:5.10.1")
1313
testFixturesApi("org.assertj:assertj-core:3.24.2")
1414
testFixturesApi("org.awaitility:awaitility:4.2.0")
1515

16-
testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine:5.10.0")
16+
testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine:5.10.1")
1717
testImplementation("ch.qos.logback:logback-classic:1.3.5")
1818
testImplementation("org.mockito:mockito-core:4.11.0")
19-
testImplementation("nl.jqno.equalsverifier:equalsverifier:3.15.2")
19+
testImplementation("nl.jqno.equalsverifier:equalsverifier:3.15.3")
2020
testImplementation("io.github.artsok:rerunner-jupiter:2.1.6")
2121
}
2222

coap-core/src/main/java/com/mbed/coap/client/RegistrationManager.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
import org.slf4j.Logger;
3434
import org.slf4j.LoggerFactory;
3535

36-
public class RegistrationManager {
36+
public final class RegistrationManager {
3737
private static final Logger LOGGER = LoggerFactory.getLogger(RegistrationManager.class);
3838
private final Duration minRetryDelay;
3939
private final Duration maxRetryDelay;
@@ -128,7 +128,7 @@ private void updateFailed(String errMessage) {
128128
register();
129129
}
130130

131-
protected void registrationFailed(String errMessage) {
131+
void registrationFailed(String errMessage) {
132132
lastRetryDelay = nextDelay(lastRetryDelay);
133133
registrationLocation = Optional.empty();
134134
scheduledExecutor.schedule((Runnable) this::register, lastRetryDelay.getSeconds(), TimeUnit.SECONDS);

coap-core/src/main/java/com/mbed/coap/linkformat/PToken.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
import java.util.Objects;
2222

2323

24-
public class PToken implements CharSequence, Serializable {
24+
public final class PToken implements CharSequence, Serializable {
2525

2626
private static final int validRangeStart = 33; //'!'
2727
private static final int validRangeStop = 126; //'~'

coap-core/src/main/java/com/mbed/coap/server/block/BlockWiseCallback.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
import org.slf4j.Logger;
3535
import org.slf4j.LoggerFactory;
3636

37-
class BlockWiseCallback {
37+
final class BlockWiseCallback {
3838
private static final Logger LOGGER = LoggerFactory.getLogger(BlockWiseCallback.class);
3939
private static final int MAX_BLOCK_RESOURCE_CHANGE = 3;
4040

coap-core/src/testFixtures/java/com/mbed/coap/utils/IpPortAddress.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
/**
1+
/*
2+
* Copyright (C) 2022-2023 java-coap contributors (https://github.com/open-coap/java-coap)
23
* Copyright (C) 2011-2018 ARM Limited. All rights reserved.
34
* SPDX-License-Identifier: Apache-2.0
45
* Licensed under the Apache License, Version 2.0 (the "License");
@@ -25,7 +26,7 @@
2526
* Container class for raw IP and port without hostname. Avoids deterministic
2627
* problem of serializing InetSocketAddress with hostname.
2728
*/
28-
public class IpPortAddress implements Serializable {
29+
public final class IpPortAddress implements Serializable {
2930
private static final long serialVersionUID = 1L;
3031

3132
private final byte[] ip;

coap-mbedtls/build.gradle.kts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,13 @@ description = "coap-mbedtls"
66

77
dependencies {
88
api(project(":coap-core"))
9-
api("io.github.open-coap:kotlin-mbedtls:1.19.1")
9+
api("io.github.open-coap:kotlin-mbedtls:1.20.0")
1010

1111
testImplementation(project(":coap-netty"))
12-
testImplementation("io.github.open-coap:kotlin-mbedtls-netty:1.19.1")
12+
testImplementation("io.github.open-coap:kotlin-mbedtls-netty:1.20.0")
1313

1414
testImplementation(testFixtures(project(":coap-core")))
15-
testImplementation("org.junit.jupiter:junit-jupiter-api:5.10.0")
16-
testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine:5.10.0")
15+
testImplementation("org.junit.jupiter:junit-jupiter-api:5.10.1")
16+
testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine:5.10.1")
1717
testImplementation("ch.qos.logback:logback-classic:1.3.5")
1818
}

coap-metrics/build.gradle.kts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ description = "coap-metrics"
77
dependencies {
88
api(project(":coap-core"))
99

10-
implementation("io.micrometer:micrometer-core:1.11.4")
11-
testImplementation("org.junit.jupiter:junit-jupiter-api:5.10.0")
12-
testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine:5.10.0")
10+
implementation("io.micrometer:micrometer-core:1.11.5")
11+
testImplementation("org.junit.jupiter:junit-jupiter-api:5.10.1")
12+
testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine:5.10.1")
1313
testImplementation(testFixtures(project(":coap-core")))
1414
}

coap-netty/build.gradle.kts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,15 @@ description = "coap-netty"
77

88
dependencies {
99
api(project(":coap-core"))
10-
api("io.netty:netty-handler:4.1.99.Final")
10+
api("io.netty:netty-handler:4.1.100.Final")
1111

12-
testImplementation("org.junit.jupiter:junit-jupiter-api:5.10.0")
13-
testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine:5.10.0")
12+
testImplementation("org.junit.jupiter:junit-jupiter-api:5.10.1")
13+
testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine:5.10.1")
1414

1515
testImplementation(testFixtures(project(":coap-core")))
1616
testImplementation("ch.qos.logback:logback-classic:1.3.5")
1717

18-
jmhImplementation("io.netty:netty-all:4.1.99.Final")
18+
jmhImplementation("io.netty:netty-all:4.1.100.Final")
1919
}
2020

2121
tasks {

0 commit comments

Comments
 (0)