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 2014/07/30 21:45:37 UTC

git commit: Minor update to Requestpreprocessor

Repository: cxf
Updated Branches:
  refs/heads/master 4fa44730d -> 8c331929e


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/8c331929
Tree: http://git-wip-us.apache.org/repos/asf/cxf/tree/8c331929
Diff: http://git-wip-us.apache.org/repos/asf/cxf/diff/8c331929

Branch: refs/heads/master
Commit: 8c331929e7197f4f9b39d55c0b206386f656c18d
Parents: 4fa4473
Author: Sergey Beryozkin <sb...@talend.com>
Authored: Wed Jul 30 22:45:16 2014 +0300
Committer: Sergey Beryozkin <sb...@talend.com>
Committed: Wed Jul 30 22:45:16 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/8c331929/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);
             }
         }