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:
Mark Robert Miller 2009-05-22 12:29:02 +00:00
parent 4c24a4f309
commit d8e49bb012
1 changed files with 4 additions and 4 deletions

View File

@ -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;