- Timestamp:
- 2022-05-16T22:24:59+02:00 (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/mappaint/mapcss/MapCSSRuleIndex.java
r18208 r18451 5 5 import java.util.BitSet; 6 6 import java.util.Collections; 7 import java.util.EnumSet; 7 8 import java.util.HashMap; 8 9 import java.util.Iterator; … … 121 122 } 122 123 124 /** Valid key types for indexing (see {@link ConditionFactory.KeyMatchType}) */ 125 private static final EnumSet<ConditionFactory.KeyMatchType> VALID_INDEX_KEY_TYPES = EnumSet.of( 126 ConditionFactory.KeyMatchType.EQ, ConditionFactory.KeyMatchType.TRUE, ConditionFactory.KeyMatchType.FALSE); 127 123 128 /** 124 129 * All rules this index is for. Once this index is built, this list is sorted. … … 187 192 String key = null; 188 193 for (Condition c : conds) { 189 if (c instanceof KeyCondition) { 194 if (c instanceof KeyCondition && VALID_INDEX_KEY_TYPES.contains(((KeyCondition) c).matchType)) { 190 195 KeyCondition keyCondition = (KeyCondition) c; 191 196 if (!keyCondition.negateResult) {
Note:
See TracChangeset
for help on using the changeset viewer.
