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") } 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; 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;