Changeset 5701 in josm
- Timestamp:
- 2013-02-08T21:58:21+01:00 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/mappaint/mapcss/Expression.java
r5699 r5701 313 313 Matcher m = Pattern.compile(pattern, f).matcher(target); 314 314 if (m.matches()) { 315 List result = new ArrayList(m.groupCount()); 316 for (int i= 1; i<=m.groupCount(); i++) {315 List result = new ArrayList(m.groupCount() + 1); 316 for (int i=0; i<=m.groupCount(); i++) { 317 317 result.add(m.group(i)); 318 318 } … … 325 325 Matcher m = Pattern.compile(pattern).matcher(target); 326 326 if (m.matches()) { 327 List result = new ArrayList(m.groupCount()); 328 for (int i= 1; i<=m.groupCount(); i++) {327 List result = new ArrayList(m.groupCount() + 1); 328 for (int i=0; i<=m.groupCount(); i++) { 329 329 result.add(m.group(i)); 330 330 }
Note:
See TracChangeset
for help on using the changeset viewer.