Changeset 11377 in josm
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/dialogs/DeleteFromRelationConfirmationDialog.java
r11366 r11377 187 187 public static class RelationMemberTableModel extends DefaultTableModel { 188 188 private static class RelationToChildReferenceComparator implements Comparator<RelationToChildReference>, Serializable { 189 private final NameFormatter nf = DefaultNameFormatter.getInstance();190 191 189 @Override 192 190 public int compare(RelationToChildReference o1, RelationToChildReference o2) { 191 NameFormatter nf = DefaultNameFormatter.getInstance(); 193 192 int cmp = o1.getChild().getDisplayName(nf).compareTo(o2.getChild().getDisplayName(nf)); 194 193 if (cmp != 0) return cmp; -
trunk/src/org/openstreetmap/josm/gui/io/UploadSelectionDialog.java
r11366 r11377 198 198 static class OsmPrimitiveListModel extends AbstractListModel<OsmPrimitive> { 199 199 static final class OsmPrimitiveComparator implements Comparator<OsmPrimitive>, Serializable { 200 private final DefaultNameFormatter formatter = DefaultNameFormatter.getInstance();201 202 200 @Override 203 201 public int compare(OsmPrimitive o1, OsmPrimitive o2) { … … 205 203 if (ret != 0) 206 204 return ret; 205 DefaultNameFormatter formatter = DefaultNameFormatter.getInstance(); 207 206 return o1.getDisplayName(formatter).compareTo(o1.getDisplayName(formatter)); 208 207 } -
trunk/tools/findbugs/josm-filter.xml
r11375 r11377 3 3 <Match> 4 4 <Bug pattern="RV_RETURN_VALUE_IGNORED_BAD_PRACTICE" /> 5 </Match> 6 <Match> 7 <Bug pattern="SE_BAD_FIELD" /> 5 8 </Match> 6 9 <Match>
Note:
See TracChangeset
for help on using the changeset viewer.