Changeset 2974 in josm for trunk/src/org/openstreetmap/josm/gui/tagging/ac/AutoCompletionCache.java
- Timestamp:
- 13.02.2010 17:45:10 (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/tagging/ac/AutoCompletionCache.java
r2960 r2974 147 147 if (item instanceof TaggingPreset.Check) { 148 148 TaggingPreset.Check ch = (TaggingPreset.Check) item; 149 if (ch.key == null) continue; 149 if (ch.key == null) { 150 continue; 151 } 150 152 presetTagCache.put(ch.key, OsmUtils.falseval); 151 153 presetTagCache.put(ch.key, OsmUtils.trueval); 152 154 } else if (item instanceof TaggingPreset.Combo) { 153 155 TaggingPreset.Combo co = (TaggingPreset.Combo) item; 154 if (co.key == null || co.values == null) continue; 156 if (co.key == null || co.values == null) { 157 continue; 158 } 155 159 for (String value : co.values.split(",")) { 156 160 presetTagCache.put(co.key, value); … … 158 162 } else if (item instanceof TaggingPreset.Key) { 159 163 TaggingPreset.Key ky = (TaggingPreset.Key) item; 160 if (ky.key == null || ky.value == null) continue; 164 if (ky.key == null || ky.value == null) { 165 continue; 166 } 161 167 presetTagCache.put(ky.key, ky.value); 162 168 } else if (item instanceof TaggingPreset.Text) { 163 169 TaggingPreset.Text tt = (TaggingPreset.Text) item; 164 if (tt.key == null) continue; 170 if (tt.key == null) { 171 continue; 172 } 165 173 presetTagCache.putVoid(tt.key); 166 174 if (tt.default_ != null && !tt.default_.equals("")) { … … 171 179 } 172 180 } 173 181 174 182 /** 175 183 * replies the keys held by the cache
Note: See TracChangeset
for help on using the changeset viewer.
