From 298d90b6215b824b779af7e09c2b855eb82481b4 Mon Sep 17 00:00:00 2001 From: Christine Poerschke Date: Mon, 12 Feb 2018 17:43:51 +0000 Subject: [PATCH] LUCENE-8167: fix two incompleteEnumSwitch warnings in solr/solrj --- .../client/solrj/impl/XMLResponseParser.java | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/solr/solrj/src/java/org/apache/solr/client/solrj/impl/XMLResponseParser.java b/solr/solrj/src/java/org/apache/solr/client/solrj/impl/XMLResponseParser.java index 953da6a2a9d..867b2c5e526 100644 --- a/solr/solrj/src/java/org/apache/solr/client/solrj/impl/XMLResponseParser.java +++ b/solr/solrj/src/java/org/apache/solr/client/solrj/impl/XMLResponseParser.java @@ -252,6 +252,15 @@ public class XMLResponseParser extends ResponseParser case ARR: nl.add( name, readArray( parser ) ); depth--; continue; case RESULT: nl.add( name, readDocuments( parser ) ); depth--; continue; case DOC: nl.add( name, readDocument( parser ) ); depth--; continue; + case BOOL: + case DATE: + case DOUBLE: + case FLOAT: + case INT: + case LONG: + case NULL: + case STR: + break; } throw new XMLStreamException( "branch element not handled!", parser.getLocation() ); } @@ -316,6 +325,15 @@ public class XMLResponseParser extends ResponseParser case ARR: vals.add( readArray( parser ) ); depth--; continue; case RESULT: vals.add( readDocuments( parser ) ); depth--; continue; case DOC: vals.add( readDocument( parser ) ); depth--; continue; + case BOOL: + case DATE: + case DOUBLE: + case FLOAT: + case INT: + case LONG: + case NULL: + case STR: + break; } throw new XMLStreamException( "branch element not handled!", parser.getLocation() ); }