You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by an...@apache.org on 2015/05/06 21:31:14 UTC

svn commit: r1678073 - in /lucene/dev/branches/branch_5x: ./ solr/ solr/core/ solr/core/src/java/org/apache/solr/servlet/HttpSolrCall.java

Author: anshum
Date: Wed May  6 19:31:14 2015
New Revision: 1678073

URL: http://svn.apache.org/r1678073
Log:
SOLR-7484: Cleaning up redundant switch cases from the code (merge from trunk)

Modified:
    lucene/dev/branches/branch_5x/   (props changed)
    lucene/dev/branches/branch_5x/solr/   (props changed)
    lucene/dev/branches/branch_5x/solr/core/   (props changed)
    lucene/dev/branches/branch_5x/solr/core/src/java/org/apache/solr/servlet/HttpSolrCall.java

Modified: lucene/dev/branches/branch_5x/solr/core/src/java/org/apache/solr/servlet/HttpSolrCall.java
URL: http://svn.apache.org/viewvc/lucene/dev/branches/branch_5x/solr/core/src/java/org/apache/solr/servlet/HttpSolrCall.java?rev=1678073&r1=1678072&r2=1678073&view=diff
==============================================================================
--- lucene/dev/branches/branch_5x/solr/core/src/java/org/apache/solr/servlet/HttpSolrCall.java (original)
+++ lucene/dev/branches/branch_5x/solr/core/src/java/org/apache/solr/servlet/HttpSolrCall.java Wed May  6 19:31:14 2015
@@ -390,14 +390,7 @@ class HttpSolrCall {
             writeResponse(solrRsp, responseWriter, reqMethod);
           }
           return RETURN;
-        case FORWARD:
-          return FORWARD;
-        case PASSTHROUGH:
-          return PASSTHROUGH;
-        case RETRY:
-          return RETRY;
-        case RETURN:
-          return RETURN;
+        default: return action;
       }
     } catch (Throwable ex) {
       sendError(ex);
@@ -415,9 +408,6 @@ class HttpSolrCall {
       return RETURN;
     }
 
-    // Otherwise let the webapp handle the request
-
-    return Action.PASSTHROUGH;
   }
 
   void destroy() {