This is an automated email from the ASF dual-hosted git repository.

reta pushed a commit to branch 4.0.x-fixes
in repository https://gitbox.apache.org/repos/asf/cxf.git

commit 2b1456b46f6f01a61420aa32b0de39d7e3b72d4d
Author: Andriy Redko <[email protected]>
AuthorDate: Sat Mar 1 21:30:44 2025 -0500

    Fix PMD violations
---
 .../org/apache/cxf/systest/http/HTTPConduitIoExceptionsTest.java    | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git 
a/systests/transports/src/test/java/org/apache/cxf/systest/http/HTTPConduitIoExceptionsTest.java
 
b/systests/transports/src/test/java/org/apache/cxf/systest/http/HTTPConduitIoExceptionsTest.java
index 9a7b7993b9..451c0e08f2 100644
--- 
a/systests/transports/src/test/java/org/apache/cxf/systest/http/HTTPConduitIoExceptionsTest.java
+++ 
b/systests/transports/src/test/java/org/apache/cxf/systest/http/HTTPConduitIoExceptionsTest.java
@@ -77,12 +77,13 @@ public class HTTPConduitIoExceptionsTest extends 
AbstractBusClientServerTestBase
     }
 
     @Test
+    @SuppressWarnings("PMD.FinalFieldCouldBeStatic")
     public void testServiceUnavailable() throws Exception {
         final Greeter greeter = getGreeter();
 
         exception.expect(WebServiceException.class);
         exception.expectCause(new TypeSafeMatcher<Throwable>() {
-            private static final String message = "HTTP response '503: Service 
Unavailable' when "
+            private final String message = "HTTP response '503: Service 
Unavailable' when "
                 + "communicating with http://localhost:"; + BadServer.PORT + 
"/Mortimer";
 
             @Override
@@ -104,12 +105,13 @@ public class HTTPConduitIoExceptionsTest extends 
AbstractBusClientServerTestBase
     }
 
     @Test
+    @SuppressWarnings("PMD.FinalFieldCouldBeStatic")
     public void testNotFound() throws Exception {
         final Greeter greeter = getGreeter();
 
         exception.expect(WebServiceException.class);
         exception.expectCause(new TypeSafeMatcher<Throwable>() {
-            private static final String message = "HTTP response '404: Not 
Found' when "
+            private final String message = "HTTP response '404: Not Found' 
when "
                 + "communicating with http://localhost:"; + BadServer.PORT + 
"/Mortimer";
 
             @Override

Reply via email to