Add {} to ifs in org.apache.lucene
This commit is contained in:
parent
e87b09e8dd
commit
dd3b4a1e50
|
@ -167,8 +167,7 @@ public class MapperQueryParser extends QueryParser {
|
||||||
clauses.add(new BooleanClause(applyBoost(mField, q), BooleanClause.Occur.SHOULD));
|
clauses.add(new BooleanClause(applyBoost(mField, q), BooleanClause.Occur.SHOULD));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (clauses.size() == 0) // happens for stopwords
|
if (clauses.isEmpty()) return null; // happens for stopwords
|
||||||
return null;
|
|
||||||
return getBooleanQueryCoordDisabled(clauses);
|
return getBooleanQueryCoordDisabled(clauses);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
@ -270,8 +269,7 @@ public class MapperQueryParser extends QueryParser {
|
||||||
clauses.add(new BooleanClause(applyBoost(mField, q), BooleanClause.Occur.SHOULD));
|
clauses.add(new BooleanClause(applyBoost(mField, q), BooleanClause.Occur.SHOULD));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (clauses.size() == 0) // happens for stopwords
|
if (clauses.isEmpty()) return null; // happens for stopwords
|
||||||
return null;
|
|
||||||
return getBooleanQueryCoordDisabled(clauses);
|
return getBooleanQueryCoordDisabled(clauses);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
@ -322,8 +320,7 @@ public class MapperQueryParser extends QueryParser {
|
||||||
clauses.add(new BooleanClause(applyBoost(mField, q), BooleanClause.Occur.SHOULD));
|
clauses.add(new BooleanClause(applyBoost(mField, q), BooleanClause.Occur.SHOULD));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (clauses.size() == 0) // happens for stopwords
|
if (clauses.isEmpty()) return null; // happens for stopwords
|
||||||
return null;
|
|
||||||
return getBooleanQueryCoordDisabled(clauses);
|
return getBooleanQueryCoordDisabled(clauses);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -454,8 +451,7 @@ public class MapperQueryParser extends QueryParser {
|
||||||
clauses.add(new BooleanClause(applyBoost(mField, q), BooleanClause.Occur.SHOULD));
|
clauses.add(new BooleanClause(applyBoost(mField, q), BooleanClause.Occur.SHOULD));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (clauses.size() == 0) // happens for stopwords
|
if (clauses.isEmpty()) return null; // happens for stopwords
|
||||||
return null;
|
|
||||||
return getBooleanQueryCoordDisabled(clauses);
|
return getBooleanQueryCoordDisabled(clauses);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
@ -619,8 +615,7 @@ public class MapperQueryParser extends QueryParser {
|
||||||
clauses.add(new BooleanClause(applyBoost(mField, q), BooleanClause.Occur.SHOULD));
|
clauses.add(new BooleanClause(applyBoost(mField, q), BooleanClause.Occur.SHOULD));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (clauses.size() == 0) // happens for stopwords
|
if (clauses.isEmpty()) return null; // happens for stopwords
|
||||||
return null;
|
|
||||||
return getBooleanQueryCoordDisabled(clauses);
|
return getBooleanQueryCoordDisabled(clauses);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
@ -748,8 +743,7 @@ public class MapperQueryParser extends QueryParser {
|
||||||
clauses.add(new BooleanClause(applyBoost(mField, q), BooleanClause.Occur.SHOULD));
|
clauses.add(new BooleanClause(applyBoost(mField, q), BooleanClause.Occur.SHOULD));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (clauses.size() == 0) // happens for stopwords
|
if (clauses.isEmpty()) return null; // happens for stopwords
|
||||||
return null;
|
|
||||||
return getBooleanQueryCoordDisabled(clauses);
|
return getBooleanQueryCoordDisabled(clauses);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in New Issue