Changeset 11132 in josm for trunk/src/org
- Timestamp:
- 2016-10-15T21:45:25+02:00 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/dialogs/validator/ValidatorTreePanel.java
r11128 r11132 15 15 import java.util.Map; 16 16 import java.util.Set; 17 import java.util.TreeMap; 17 18 import java.util.function.Predicate; 18 19 import java.util.stream.Collectors; … … 34 35 import org.openstreetmap.josm.gui.preferences.validator.ValidatorPreference; 35 36 import org.openstreetmap.josm.gui.util.GuiHelper; 37 import org.openstreetmap.josm.tools.AlphanumComparator; 36 38 import org.openstreetmap.josm.tools.Destroyable; 37 39 import org.openstreetmap.josm.tools.ListenerList; … … 180 182 = errors.stream().filter(filterToUse).collect( 181 183 Collectors.groupingBy(TestError::getSeverity, () -> new EnumMap<>(Severity.class), 182 Collectors.groupingBy(TestError::getMessage, 183 Collectors.groupingBy(e -> e.getDescription() == null ? "" : e.getDescription() 184 Collectors.groupingBy(TestError::getMessage, () -> new TreeMap<>(AlphanumComparator.getInstance()), 185 Collectors.groupingBy(e -> e.getDescription() == null ? "" : e.getDescription(), 186 () -> new TreeMap<>(AlphanumComparator.getInstance()), 187 Collectors.toList() 184 188 )))); 185 189 … … 230 234 if (groupNode != null) { 231 235 msg = tr("{0} ({1})", description, errors.size()); 236 } else if (description == null || description.isEmpty()) { 237 msg = tr("{0} ({1})", message, errors.size()); 232 238 } else { 233 239 msg = tr("{0} - {1} ({2})", message, description, errors.size());
Note:
See TracChangeset
for help on using the changeset viewer.