mirror of https://github.com/apache/lucene.git
LUCENE-8167: fix two incompleteEnumSwitch warnings in solr/solrj
This commit is contained in:
parent
af5acc898e
commit
298d90b621
|
@ -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() );
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue