cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From serg...@apache.org
Subject git commit: Minor update to Requestpreprocessor
Date Wed, 30 Jul 2014 19:48:43 GMT
Repository: cxf
Updated Branches:
  refs/heads/3.0.x-fixes f34ea2c8d -> c34502ee3


Minor update to Requestpreprocessor


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

Branch: refs/heads/3.0.x-fixes
Commit: c34502ee30492aca93dd17f99ed7bedddd523e45
Parents: f34ea2c
Author: Sergey Beryozkin <sberyozkin@talend.com>
Authored: Wed Jul 30 22:48:19 2014 +0300
Committer: Sergey Beryozkin <sberyozkin@talend.com>
Committed: Wed Jul 30 22:48:19 2014 +0300

----------------------------------------------------------------------
 .../main/java/org/apache/cxf/jaxrs/impl/RequestPreprocessor.java   | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cxf/blob/c34502ee/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/impl/RequestPreprocessor.java
----------------------------------------------------------------------
diff --git a/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/impl/RequestPreprocessor.java
b/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/impl/RequestPreprocessor.java
index 1a9e00f..7c6dadb 100644
--- a/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/impl/RequestPreprocessor.java
+++ b/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/impl/RequestPreprocessor.java
@@ -148,7 +148,7 @@ public class RequestPreprocessor {
         String method = queries.getFirst(METHOD_QUERY);
         if (method == null) {
             List<String> list = headers.getRequestHeader(METHOD_HEADER);
-            if (list != null && list.size() == 1) {
+            if (list.size() == 1) {
                 method = list.get(0);
             }
         }


Mime
View raw message