This is an automated email from the ASF dual-hosted git repository. coheigea pushed a commit to branch coheigea/remove-OAuthServiceExceptionMapper in repository https://gitbox.apache.org/repos/asf/cxf.git
commit e90f2a1dcdad43081783ec251af488c0f257c9b3 Author: Colm O hEigeartaigh <[email protected]> AuthorDate: Wed May 20 17:22:09 2026 +0100 Removing OAuthServiceExceptionMapper which isn't used anywhere --- .../provider/OAuthServiceExceptionMapper.java | 31 ---------------------- 1 file changed, 31 deletions(-) diff --git a/rt/rs/security/oauth-parent/oauth2/src/main/java/org/apache/cxf/rs/security/oauth2/provider/OAuthServiceExceptionMapper.java b/rt/rs/security/oauth-parent/oauth2/src/main/java/org/apache/cxf/rs/security/oauth2/provider/OAuthServiceExceptionMapper.java deleted file mode 100644 index 73176dc36e6..00000000000 --- a/rt/rs/security/oauth-parent/oauth2/src/main/java/org/apache/cxf/rs/security/oauth2/provider/OAuthServiceExceptionMapper.java +++ /dev/null @@ -1,31 +0,0 @@ -/** - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ -package org.apache.cxf.rs.security.oauth2.provider; - -import jakarta.ws.rs.core.Response; -import jakarta.ws.rs.ext.ExceptionMapper; - -public class OAuthServiceExceptionMapper implements ExceptionMapper<OAuthServiceException> { - - @Override - public Response toResponse(OAuthServiceException exception) { - return Response.ok().entity(exception.getError()).build(); - } - -}
