mirror of https://github.com/apache/lucene.git
using the entryset rather than keyset is faster
git-svn-id: https://svn.apache.org/repos/asf/lucene/solr/trunk@777496 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
4c24a4f309
commit
d8e49bb012
|
@ -135,11 +135,11 @@ abstract class FieldProperties {
|
|||
|
||||
static int parseProperties(Map<String,String> properties, boolean which) {
|
||||
int props = 0;
|
||||
for (String prop : properties.keySet()) {
|
||||
if (propertyMap.get(prop)==null) continue;
|
||||
String val = properties.get(prop);
|
||||
for (Map.Entry<String, String> entry : properties.entrySet()) {
|
||||
String val = entry.getValue();
|
||||
if(val == null) continue;
|
||||
if (Boolean.parseBoolean(val) == which) {
|
||||
props |= propertyNameToInt(prop);
|
||||
props |= propertyNameToInt(entry.getKey());
|
||||
}
|
||||
}
|
||||
return props;
|
||||
|
|
Loading…
Reference in New Issue