camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From zregv...@apache.org
Subject [camel] 01/02: Remove unused import, cleanup
Date Sun, 07 Oct 2018 15:59:49 GMT
This is an automated email from the ASF dual-hosted git repository.

zregvart pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/camel.git

commit d97fa92bfe89f49fe46869ad162ef7cd227e48f2
Author: Zoran Regvart <zregvart@apache.org>
AuthorDate: Sun Oct 7 17:20:38 2018 +0200

    Remove unused import, cleanup
---
 .../src/main/java/org/apache/camel/swagger/RestSwaggerReader.java       | 1 -
 .../src/main/java/org/apache/camel/swagger/RestSwaggerSupport.java      | 2 +-
 2 files changed, 1 insertion(+), 2 deletions(-)

diff --git a/components/camel-swagger-java/src/main/java/org/apache/camel/swagger/RestSwaggerReader.java
b/components/camel-swagger-java/src/main/java/org/apache/camel/swagger/RestSwaggerReader.java
index c0631b4..0177862 100644
--- a/components/camel-swagger-java/src/main/java/org/apache/camel/swagger/RestSwaggerReader.java
+++ b/components/camel-swagger-java/src/main/java/org/apache/camel/swagger/RestSwaggerReader.java
@@ -40,7 +40,6 @@ import io.swagger.models.Operation;
 import io.swagger.models.Path;
 import io.swagger.models.RefModel;
 import io.swagger.models.Response;
-import io.swagger.models.SecurityRequirement;
 import io.swagger.models.Swagger;
 import io.swagger.models.Tag;
 import io.swagger.models.auth.ApiKeyAuthDefinition;
diff --git a/components/camel-swagger-java/src/main/java/org/apache/camel/swagger/RestSwaggerSupport.java
b/components/camel-swagger-java/src/main/java/org/apache/camel/swagger/RestSwaggerSupport.java
index 33cd20a..d39f501 100644
--- a/components/camel-swagger-java/src/main/java/org/apache/camel/swagger/RestSwaggerSupport.java
+++ b/components/camel-swagger-java/src/main/java/org/apache/camel/swagger/RestSwaggerSupport.java
@@ -373,7 +373,7 @@ public class RestSwaggerSupport {
         }
 
         String proto = (String) headers.get(HEADER_X_FORWARDED_PROTO);
-        if(ObjectHelper.isNotEmpty(proto)) {
+        if (ObjectHelper.isNotEmpty(proto)) {
             String[] schemes = proto.split(",");
             for(String scheme : schemes) {
                 String trimmedScheme = scheme.trim();


Mime
View raw message