From 3e30dc6f52a98b80f220b58307ec9873ffe3450c Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Thu, 1 Oct 2026 00:29:35 +0000 Subject: [PATCH 1/3] build(deps): bump net.sourceforge.pmd:pmd-ant from 7.27.0 to 7.28.0 Bumps [net.sourceforge.pmd:pmd-ant](https://github.com/pmd/pmd) from 7.27.0 to 7.28.0. - [Release notes](https://github.com/pmd/pmd/releases) - [Commits](https://github.com/pmd/pmd/compare/pmd_releases/7.27.0...pmd_releases/7.28.0) --- updated-dependencies: - dependency-name: net.sourceforge.pmd:pmd-ant dependency-version: 7.28.0 dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- build.gradle.kts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/build.gradle.kts b/build.gradle.kts index ca24be87..9904b268 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -123,8 +123,8 @@ subprojects { } dependencies { - pmd("net.sourceforge.pmd:pmd-ant:7.27.0") - pmd("net.sourceforge.pmd:pmd-java:7.27.0") + pmd("net.sourceforge.pmd:pmd-ant:7.28.0") + pmd("net.sourceforge.pmd:pmd-java:7.28.0") spotbugsPlugins("com.h3xstream.findsecbugs:findsecbugs-plugin:1.14.0") } From 2bc0097456eb112601fce6e1dce01fdba6f7dc50 Mon Sep 17 00:00:00 2001 From: Szymon Sasin Date: Thu, 1 Oct 2026 11:09:50 +0300 Subject: [PATCH 2/3] style: replace on-demand imports with explicit ones --- .../com/mbed/coap/server/block/BlockWiseOutgoingFilter.java | 4 ++-- .../com/mbed/coap/server/filter/SequentialTaskRunner.java | 5 +++-- .../coap/server/messaging/PiggybackedExchangeFilter.java | 4 ++-- 3 files changed, 7 insertions(+), 6 deletions(-) diff --git a/coap-core/src/main/java/com/mbed/coap/server/block/BlockWiseOutgoingFilter.java b/coap-core/src/main/java/com/mbed/coap/server/block/BlockWiseOutgoingFilter.java index bde61293..2a6f1d95 100644 --- a/coap-core/src/main/java/com/mbed/coap/server/block/BlockWiseOutgoingFilter.java +++ b/coap-core/src/main/java/com/mbed/coap/server/block/BlockWiseOutgoingFilter.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2022 java-coap contributors (https://github.com/open-coap/java-coap) + * Copyright (C) 2022-2026 java-coap contributors (https://github.com/open-coap/java-coap) * Copyright (C) 2011-2021 ARM Limited. All rights reserved. * SPDX-License-Identifier: Apache-2.0 * Licensed under the Apache License, Version 2.0 (the "License"); @@ -16,7 +16,7 @@ */ package com.mbed.coap.server.block; -import static com.mbed.coap.utils.FutureHelpers.*; +import static com.mbed.coap.utils.FutureHelpers.failedFuture; import com.mbed.coap.exception.CoapException; import com.mbed.coap.packet.CoapRequest; import com.mbed.coap.packet.CoapResponse; diff --git a/coap-core/src/main/java/com/mbed/coap/server/filter/SequentialTaskRunner.java b/coap-core/src/main/java/com/mbed/coap/server/filter/SequentialTaskRunner.java index 39761e74..51b2535f 100644 --- a/coap-core/src/main/java/com/mbed/coap/server/filter/SequentialTaskRunner.java +++ b/coap-core/src/main/java/com/mbed/coap/server/filter/SequentialTaskRunner.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2022 java-coap contributors (https://github.com/open-coap/java-coap) + * Copyright (C) 2022-2026 java-coap contributors (https://github.com/open-coap/java-coap) * SPDX-License-Identifier: Apache-2.0 * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -15,7 +15,8 @@ */ package com.mbed.coap.server.filter; -import static com.mbed.coap.utils.FutureHelpers.*; +import static com.mbed.coap.utils.FutureHelpers.become; +import static com.mbed.coap.utils.FutureHelpers.failedFuture; import com.mbed.coap.exception.TooManyRequestsForEndpointException; import java.util.concurrent.CompletableFuture; import java.util.concurrent.atomic.AtomicInteger; diff --git a/coap-core/src/main/java/com/mbed/coap/server/messaging/PiggybackedExchangeFilter.java b/coap-core/src/main/java/com/mbed/coap/server/messaging/PiggybackedExchangeFilter.java index 614f0f46..0b2e101e 100644 --- a/coap-core/src/main/java/com/mbed/coap/server/messaging/PiggybackedExchangeFilter.java +++ b/coap-core/src/main/java/com/mbed/coap/server/messaging/PiggybackedExchangeFilter.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2022 java-coap contributors (https://github.com/open-coap/java-coap) + * Copyright (C) 2022-2026 java-coap contributors (https://github.com/open-coap/java-coap) * SPDX-License-Identifier: Apache-2.0 * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -15,7 +15,7 @@ */ package com.mbed.coap.server.messaging; -import static com.mbed.coap.utils.Validations.*; +import static com.mbed.coap.utils.Validations.require; import com.mbed.coap.packet.CoapPacket; import com.mbed.coap.packet.MessageType; import com.mbed.coap.utils.Filter; From 7d87f9ff4dc3229208c1d8ebc6c65caf0f6ab923 Mon Sep 17 00:00:00 2001 From: Szymon Sasin Date: Thu, 1 Oct 2026 11:17:30 +0300 Subject: [PATCH 3/3] style: replace remaining on-demand import --- .../com/mbed/coap/server/messaging/PayloadSizeVerifier.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/coap-tcp/src/main/java/com/mbed/coap/server/messaging/PayloadSizeVerifier.java b/coap-tcp/src/main/java/com/mbed/coap/server/messaging/PayloadSizeVerifier.java index 853f1191..5f21f9a3 100644 --- a/coap-tcp/src/main/java/com/mbed/coap/server/messaging/PayloadSizeVerifier.java +++ b/coap-tcp/src/main/java/com/mbed/coap/server/messaging/PayloadSizeVerifier.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2022 java-coap contributors (https://github.com/open-coap/java-coap) + * Copyright (C) 2022-2026 java-coap contributors (https://github.com/open-coap/java-coap) * SPDX-License-Identifier: Apache-2.0 * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -15,7 +15,7 @@ */ package com.mbed.coap.server.messaging; -import static com.mbed.coap.utils.FutureHelpers.*; +import static com.mbed.coap.utils.FutureHelpers.failedFuture; import com.mbed.coap.exception.CoapException; import com.mbed.coap.packet.CoapPacket; import com.mbed.coap.utils.Filter;