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


The following commit(s) were added to refs/heads/4.0.x-fixes by this push:
     new 88eead1bcd Fix PMD violations (#2516)
88eead1bcd is described below

commit 88eead1bcd3940a9d3603d945ecc90aefc4b7bca
Author: Andriy Redko <[email protected]>
AuthorDate: Sat Jul 19 20:36:18 2025 -0400

    Fix PMD violations (#2516)
---
 .github/workflows/pull-request-build.yml                         | 7 ++++---
 .../org/apache/cxf/systest/http/HTTPConduitIoExceptionsTest.java | 9 ++++-----
 2 files changed, 8 insertions(+), 8 deletions(-)

diff --git a/.github/workflows/pull-request-build.yml 
b/.github/workflows/pull-request-build.yml
index 9c4ce9046e..14b5659a28 100644
--- a/.github/workflows/pull-request-build.yml
+++ b/.github/workflows/pull-request-build.yml
@@ -12,17 +12,18 @@ jobs:
     runs-on: ${{ matrix.os }}
     strategy:
       matrix:
-        os: [windows-latest, ubuntu-latest] 
+        os: [windows-latest, ubuntu-latest]
+        jdk: [17, 21] 
     permissions:
       contents: read  
       pull-requests: read
     timeout-minutes: 130
     steps:
       - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # 
v3.6.0
-      - name: Set up JDK 17
+      - name: Set up JDK ${{ matrix.jdk }}
         uses: actions/setup-java@c5195efecf7bdfc987ee8bae7a71cb8b11521c00 # 
v4.7.1
         with:
-          java-version: '17'
+          java-version: ${{ matrix.jdk }}
           distribution: 'temurin'
           cache: maven
       - name: Build with Apache Maven (Windows)
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 6cc0f3681b..4ba1ebcb73 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
@@ -79,12 +79,11 @@ public class HTTPConduitIoExceptionsTest extends 
AbstractBusClientServerTestBase
     @Test
     public void testServiceUnavailable() throws Exception {
         final Greeter greeter = getGreeter();
+        final String message = "HTTP response '503: Service Unavailable' when "
+                + "communicating with http://localhost:"; + BadServer.PORT + 
"/Mortimer";
 
         exception.expect(WebServiceException.class);
         exception.expectCause(new TypeSafeMatcher<Throwable>() {
-            private final String message = "HTTP response '503: Service 
Unavailable' when "
-                + "communicating with http://localhost:"; + BadServer.PORT + 
"/Mortimer";
-
             @Override
             public void describeTo(Description description) {
                 description
@@ -106,11 +105,11 @@ public class HTTPConduitIoExceptionsTest extends 
AbstractBusClientServerTestBase
     @Test
     public void testNotFound() throws Exception {
         final Greeter greeter = getGreeter();
+        final String message = "HTTP response '404: Not Found' when "
+                + "communicating with http://localhost:"; + BadServer.PORT + 
"/Mortimer";
 
         exception.expect(WebServiceException.class);
         exception.expectCause(new TypeSafeMatcher<Throwable>() {
-            private final String message = "HTTP response '404: Not Found' 
when "
-                + "communicating with http://localhost:"; + BadServer.PORT + 
"/Mortimer";
 
             @Override
             public void describeTo(Description description) {

Reply via email to