use shorter expression

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@987005 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Koji Sekiguchi 2010-08-19 03:18:05 +00:00
parent 01fa6f4216
commit 28445d6107
1 changed files with 1 additions and 2 deletions

View File

@ -74,8 +74,7 @@ public class QueryComponent extends SearchComponent
}
rb.setFieldFlags( fieldFlags );
String defType = params.get(QueryParsing.DEFTYPE);
defType = defType==null ? QParserPlugin.DEFAULT_QTYPE : defType;
String defType = params.get(QueryParsing.DEFTYPE,QParserPlugin.DEFAULT_QTYPE);
if (rb.getQueryString() == null) {
rb.setQueryString( params.get( CommonParams.Q ) );