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

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


The following commit(s) were added to refs/heads/main by this push:
     new b519e0ae PMD fixes
b519e0ae is described below

commit b519e0ae282aeeae9912728ef19ae53879579bac
Author: Colm O hEigeartaigh <[email protected]>
AuthorDate: Thu Apr 3 09:50:34 2025 +0100

    PMD fixes
---
 .../main/java/org/apache/cxf/fediz/core/processor/ClaimsProcessor.java   | 1 +
 .../java/org/apache/cxf/fediz/service/idp/protocols/ClaimsHandler.java   | 1 +
 .../src/main/java/org/apache/cxf/fediz/service/idp/rest/RootService.java | 1 +
 .../main/java/org/apache/cxf/fediz/service/idp/spi/ProtocolHandler.java  | 1 +
 .../java/org/apache/cxf/fediz/service/oidc/logout/LogoutHandler.java     | 1 +
 5 files changed, 5 insertions(+)

diff --git 
a/plugins/core/src/main/java/org/apache/cxf/fediz/core/processor/ClaimsProcessor.java
 
b/plugins/core/src/main/java/org/apache/cxf/fediz/core/processor/ClaimsProcessor.java
index b45eaf2b..8af08549 100644
--- 
a/plugins/core/src/main/java/org/apache/cxf/fediz/core/processor/ClaimsProcessor.java
+++ 
b/plugins/core/src/main/java/org/apache/cxf/fediz/core/processor/ClaimsProcessor.java
@@ -23,6 +23,7 @@ import java.util.List;
 
 import org.apache.cxf.fediz.core.Claim;
 
+@SuppressWarnings("PMD.ImplicitFunctionalInterface")
 public interface ClaimsProcessor {
 
     /**
diff --git 
a/services/idp-core/src/main/java/org/apache/cxf/fediz/service/idp/protocols/ClaimsHandler.java
 
b/services/idp-core/src/main/java/org/apache/cxf/fediz/service/idp/protocols/ClaimsHandler.java
index cb338dca..2fb9f65e 100644
--- 
a/services/idp-core/src/main/java/org/apache/cxf/fediz/service/idp/protocols/ClaimsHandler.java
+++ 
b/services/idp-core/src/main/java/org/apache/cxf/fediz/service/idp/protocols/ClaimsHandler.java
@@ -25,6 +25,7 @@ import 
org.apache.wss4j.common.saml.bean.AttributeStatementBean;
 /**
  * An interface to convert JWT claims into a SAML AttributeStatementBean.
  */
+@SuppressWarnings("PMD.ImplicitFunctionalInterface")
 public interface ClaimsHandler {
 
     AttributeStatementBean handleClaims(JsonMapObject claims);
diff --git 
a/services/idp-core/src/main/java/org/apache/cxf/fediz/service/idp/rest/RootService.java
 
b/services/idp-core/src/main/java/org/apache/cxf/fediz/service/idp/rest/RootService.java
index 86d8a3b5..415e420f 100644
--- 
a/services/idp-core/src/main/java/org/apache/cxf/fediz/service/idp/rest/RootService.java
+++ 
b/services/idp-core/src/main/java/org/apache/cxf/fediz/service/idp/rest/RootService.java
@@ -31,6 +31,7 @@ import javax.ws.rs.core.UriInfo;
 
 @Produces({ MediaType.APPLICATION_XML, MediaType.APPLICATION_JSON })
 @Consumes({ MediaType.APPLICATION_XML, MediaType.APPLICATION_JSON })
+@SuppressWarnings("PMD.ImplicitFunctionalInterface")
 public interface RootService {
 
     @HEAD
diff --git 
a/services/idp-core/src/main/java/org/apache/cxf/fediz/service/idp/spi/ProtocolHandler.java
 
b/services/idp-core/src/main/java/org/apache/cxf/fediz/service/idp/spi/ProtocolHandler.java
index 2c1c8c96..bc206d5f 100644
--- 
a/services/idp-core/src/main/java/org/apache/cxf/fediz/service/idp/spi/ProtocolHandler.java
+++ 
b/services/idp-core/src/main/java/org/apache/cxf/fediz/service/idp/spi/ProtocolHandler.java
@@ -18,6 +18,7 @@
  */
 package org.apache.cxf.fediz.service.idp.spi;
 
+@SuppressWarnings("PMD.ImplicitFunctionalInterface")
 public interface ProtocolHandler {
 
     String getProtocol();
diff --git 
a/services/oidc/src/main/java/org/apache/cxf/fediz/service/oidc/logout/LogoutHandler.java
 
b/services/oidc/src/main/java/org/apache/cxf/fediz/service/oidc/logout/LogoutHandler.java
index 3d4e1ba2..3902ceb6 100644
--- 
a/services/oidc/src/main/java/org/apache/cxf/fediz/service/oidc/logout/LogoutHandler.java
+++ 
b/services/oidc/src/main/java/org/apache/cxf/fediz/service/oidc/logout/LogoutHandler.java
@@ -21,6 +21,7 @@ package org.apache.cxf.fediz.service.oidc.logout;
 import org.apache.cxf.rs.security.oauth2.common.Client;
 import org.apache.cxf.rs.security.oauth2.common.UserSubject;
 
+@SuppressWarnings("PMD.ImplicitFunctionalInterface")
 public interface LogoutHandler {
     void handleLogout(Client client, UserSubject subject);
 }

Reply via email to