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:45:37 GMT
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 <sberyozkin@talend.com>
Authored: Wed Jul 30 22:45:16 2014 +0300
Committer: Sergey Beryozkin <sberyozkin@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);
             }
         }


Mime
View raw message