You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cxf.apache.org by se...@apache.org on 2017/09/22 10:25:07 UTC
[cxf] branch 3.1.x-fixes updated: Remove unused parameter
This is an automated email from the ASF dual-hosted git repository.
sergeyb pushed a commit to branch 3.1.x-fixes
in repository https://gitbox.apache.org/repos/asf/cxf.git
The following commit(s) were added to refs/heads/3.1.x-fixes by this push:
new a4bbab2 Remove unused parameter
a4bbab2 is described below
commit a4bbab28f04b281a3618ea56261e124ab1f4bcc2
Author: Christian Schneider <ch...@die-schneider.net>
AuthorDate: Thu Sep 21 20:11:04 2017 +0200
Remove unused parameter
---
.../main/java/org/apache/cxf/jaxrs/swagger/SwaggerUiResolver.java | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/rt/rs/description-swagger/src/main/java/org/apache/cxf/jaxrs/swagger/SwaggerUiResolver.java b/rt/rs/description-swagger/src/main/java/org/apache/cxf/jaxrs/swagger/SwaggerUiResolver.java
index 42e3d9a..7429dfc 100644
--- a/rt/rs/description-swagger/src/main/java/org/apache/cxf/jaxrs/swagger/SwaggerUiResolver.java
+++ b/rt/rs/description-swagger/src/main/java/org/apache/cxf/jaxrs/swagger/SwaggerUiResolver.java
@@ -47,7 +47,7 @@ public class SwaggerUiResolver {
if (cl instanceof URLClassLoader) {
for (URL url : ((URLClassLoader)cl).getURLs()) {
String root =
- checkUiRoot(url.toString(), swaggerUiMavenGroupAndArtifact, swaggerUiVersion);
+ checkUiRoot(url.toString(), swaggerUiVersion);
if (root != null) {
return root;
}
@@ -56,7 +56,7 @@ public class SwaggerUiResolver {
Enumeration<URL> urls = cl.getResources(UI_RESOURCES_ROOT_START);
while (urls.hasMoreElements()) {
String urlStr = urls.nextElement().toString().replace(UI_RESOURCES_ROOT_START, "");
- String root = checkUiRoot(urlStr, swaggerUiMavenGroupAndArtifact, swaggerUiVersion);
+ String root = checkUiRoot(urlStr, swaggerUiVersion);
if (root != null) {
return root;
}
@@ -67,7 +67,7 @@ public class SwaggerUiResolver {
return null;
}
- protected static String checkUiRoot(String urlStr, String swaggerUiMavenGroupAndArtifact, String swaggerUiVersion) {
+ protected static String checkUiRoot(String urlStr, String swaggerUiVersion) {
int swaggerUiIndex = urlStr.lastIndexOf("/swagger-ui-");
if (swaggerUiIndex != -1) {
boolean urlEndsWithJarSep = urlStr.endsWith(".jar!/");
--
To stop receiving notification emails like this one, please contact
['"commits@cxf.apache.org" <co...@cxf.apache.org>'].