Changeset 9854 in josm for trunk/src/org/openstreetmap/josm/gui/mappaint
- Timestamp:
- 2016-02-23T02:11:42+01:00 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/mappaint/mapcss/MapCSSStyleSource.java
r9603 r9854 22 22 import java.util.Map; 23 23 import java.util.Map.Entry; 24 import java.util.NoSuchElementException; 24 25 import java.util.Set; 25 26 import java.util.concurrent.locks.ReadWriteLock; … … 157 158 @Override 158 159 public boolean hasNext() { 159 return next >= 0 ;160 return next >= 0 && next < rules.size(); 160 161 } 161 162 162 163 @Override 163 164 public MapCSSRule next() { 165 if (!hasNext()) 166 throw new NoSuchElementException(); 164 167 MapCSSRule rule = rules.get(next); 165 168 next = ruleCandidates.nextSetBit(next + 1);
Note:
See TracChangeset
for help on using the changeset viewer.