camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From acosent...@apache.org
Subject camel git commit: Camel-Undertow: Removed unused imports and a deprecated method usage
Date Thu, 27 Jul 2017 08:31:11 GMT
Repository: camel
Updated Branches:
  refs/heads/master 6c0c17550 -> 5a72ec72e


Camel-Undertow: Removed unused imports and a deprecated method usage


Project: http://git-wip-us.apache.org/repos/asf/camel/repo
Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/5a72ec72
Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/5a72ec72
Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/5a72ec72

Branch: refs/heads/master
Commit: 5a72ec72e0a358e40b7cbb4591e6584b6731084c
Parents: 6c0c175
Author: Andrea Cosentino <ancosen@gmail.com>
Authored: Thu Jul 27 10:30:31 2017 +0200
Committer: Andrea Cosentino <ancosen@gmail.com>
Committed: Thu Jul 27 10:30:31 2017 +0200

----------------------------------------------------------------------
 .../camel/component/undertow/DefaultUndertowHttpBinding.java      | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/camel/blob/5a72ec72/components/camel-undertow/src/main/java/org/apache/camel/component/undertow/DefaultUndertowHttpBinding.java
----------------------------------------------------------------------
diff --git a/components/camel-undertow/src/main/java/org/apache/camel/component/undertow/DefaultUndertowHttpBinding.java
b/components/camel-undertow/src/main/java/org/apache/camel/component/undertow/DefaultUndertowHttpBinding.java
index 3b2449f..7fb22ce 100644
--- a/components/camel-undertow/src/main/java/org/apache/camel/component/undertow/DefaultUndertowHttpBinding.java
+++ b/components/camel-undertow/src/main/java/org/apache/camel/component/undertow/DefaultUndertowHttpBinding.java
@@ -28,7 +28,6 @@ import java.util.HashMap;
 import java.util.Iterator;
 import java.util.Locale;
 import java.util.Map;
-import java.util.Optional;
 
 import javax.activation.FileDataSource;
 
@@ -284,7 +283,7 @@ public class DefaultUndertowHttpBinding implements UndertowHttpBinding
{
 
         int code = message.getHeader(Exchange.HTTP_RESPONSE_CODE, defaultCode, int.class);
 
-        httpExchange.setResponseCode(code);
+        httpExchange.setStatusCode(code);
 
         TypeConverter tc = message.getExchange().getContext().getTypeConverter();
 


Mime
View raw message