From ae40dba179ec95b8fb43cdbd7c4e5fa1ac39700a Mon Sep 17 00:00:00 2001 From: Andrea Aime Date: Sat, 15 Jun 2024 16:38:46 +0200 Subject: [PATCH] PMD 7.2, web module tests --- .../test/java/org/geowebcache/jetty/RestIntegrationTest.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/geowebcache/web/src/test/java/org/geowebcache/jetty/RestIntegrationTest.java b/geowebcache/web/src/test/java/org/geowebcache/jetty/RestIntegrationTest.java index 2adc2e7bc..8c458010d 100644 --- a/geowebcache/web/src/test/java/org/geowebcache/jetty/RestIntegrationTest.java +++ b/geowebcache/web/src/test/java/org/geowebcache/jetty/RestIntegrationTest.java @@ -670,7 +670,7 @@ public void testLayerNoAuth() throws Exception { * Check that the given request gives a 401 Forbidden when not authenticated, and otherwise has * a response matching the given matcher */ - @SuppressWarnings("PMD.CloseResource") + @SuppressWarnings({"PMD.CloseResource", "PMD.UnusedLocalVariable"}) protected void testSecured(HttpUriRequest request, Matcher authenticatedStatus) throws Exception { { @@ -1249,7 +1249,7 @@ public void testLayerKillAll() throws Exception { } @Test - @SuppressWarnings("PMD.EmptyControlStatement") + @SuppressWarnings({"PMD.EmptyControlStatement", "PMD.UnusedLocalVariable"}) public void testNewFileBlobstoreDontDeleteExistingContent() throws Exception { // The directory already has stuff in it File bsDir = temp.newFolder();