You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cxf.apache.org by go...@apache.org on 2017/11/29 12:02:49 UTC
[cxf] branch CXF-7572 updated: [CXF-7572] Fix PMD issue
This is an automated email from the ASF dual-hosted git repository.
gonzalad pushed a commit to branch CXF-7572
in repository https://gitbox.apache.org/repos/asf/cxf.git
The following commit(s) were added to refs/heads/CXF-7572 by this push:
new ff22b7e [CXF-7572] Fix PMD issue
ff22b7e is described below
commit ff22b7e19ad4fe26cc4f3ec58674f7b7178f44d6
Author: gonzalad <ad...@yahoo.fr>
AuthorDate: Wed Nov 29 13:03:25 2017 +0100
[CXF-7572] Fix PMD issue
---
.../cxf/rs/security/oauth2/services/AuthorizationMetadataService.java | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/rt/rs/security/oauth-parent/oauth2/src/main/java/org/apache/cxf/rs/security/oauth2/services/AuthorizationMetadataService.java b/rt/rs/security/oauth-parent/oauth2/src/main/java/org/apache/cxf/rs/security/oauth2/services/AuthorizationMetadataService.java
index 596216b..29d0ef7 100644
--- a/rt/rs/security/oauth-parent/oauth2/src/main/java/org/apache/cxf/rs/security/oauth2/services/AuthorizationMetadataService.java
+++ b/rt/rs/security/oauth-parent/oauth2/src/main/java/org/apache/cxf/rs/security/oauth2/services/AuthorizationMetadataService.java
@@ -206,9 +206,8 @@ public class AuthorizationMetadataService {
if ((uri.getPort() == 80 && "http".equals(uri.getScheme()))
|| (uri.getPort() == 443 && "https".equals(uri.getScheme()))) {
try {
- URI newURI = new URI(uri.getScheme(), uri.getUserInfo(), uri.getHost(), -1,
+ return new URI(uri.getScheme(), uri.getUserInfo(), uri.getHost(), -1,
uri.getPath(), uri.getQuery(), uri.getFragment());
- return newURI;
} catch (URISyntaxException e) {
throw new IllegalArgumentException("Invalid URI " + uri + " : " + e.toString(), e);
}
--
To stop receiving notification emails like this one, please contact
['"commits@cxf.apache.org" <co...@cxf.apache.org>'].