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

reta pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/cxf.git


The following commit(s) were added to refs/heads/main by this push:
     new 3c24183d02 Fix PMD violations
3c24183d02 is described below

commit 3c24183d02781cc97c824c0f1c2a3a815872fa8b
Author: Andriy Redko <[email protected]>
AuthorDate: Thu Dec 4 22:12:39 2025 -0500

    Fix PMD violations
---
 core/src/main/java/org/apache/cxf/helpers/ServiceUtils.java | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/core/src/main/java/org/apache/cxf/helpers/ServiceUtils.java 
b/core/src/main/java/org/apache/cxf/helpers/ServiceUtils.java
index a39ee94d44..0f10ce9663 100644
--- a/core/src/main/java/org/apache/cxf/helpers/ServiceUtils.java
+++ b/core/src/main/java/org/apache/cxf/helpers/ServiceUtils.java
@@ -47,13 +47,13 @@ public final class ServiceUtils {
         SchemaValidationType validationType = getSchemaValidationType(message);
 
         boolean isRequestor = MessageUtils.isRequestor(message);
-        if (SchemaValidationType.REQUEST.equals(validationType)) {
+        if (SchemaValidationType.REQUEST == validationType) {
             if (isRequestor) {
                 validationType = SchemaValidationType.OUT;
             } else {
                 validationType = SchemaValidationType.IN;
             }
-        } else if (SchemaValidationType.RESPONSE.equals(validationType)) {
+        } else if (SchemaValidationType.RESPONSE == validationType) {
             if (isRequestor) {
                 validationType = SchemaValidationType.IN;
             } else {
@@ -62,8 +62,8 @@ public final class ServiceUtils {
         }
 
         return validationType.equals(type)
-            || ((SchemaValidationType.IN.equals(type) || 
SchemaValidationType.OUT.equals(type))
-                && SchemaValidationType.BOTH.equals(validationType));
+            || ((SchemaValidationType.IN == type || SchemaValidationType.OUT 
== type)
+                && SchemaValidationType.BOTH == validationType);
     }
     /**
      * A convenience method to check for schema validation config in the 
message context, and then in the service model.

Reply via email to