Changeset 32771 in osm for applications/editors/josm
- Timestamp:
- 2016-08-05T19:26:51+02:00 (8 years ago)
- Location:
- applications/editors/josm/plugins/FixAddresses/src/org/openstreetmap/josm/plugins/fixAddresses
- Files:
-
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/FixAddresses/src/org/openstreetmap/josm/plugins/fixAddresses/AddressEditContainer.java
r32445 r32771 742 742 if (arg0 == null) return 1; 743 743 744 return new Integer(score).compareTo(new Integer(arg0.score));744 return Integer.valueOf(score).compareTo(Integer.valueOf(arg0.score)); 745 745 } 746 746 } -
applications/editors/josm/plugins/FixAddresses/src/org/openstreetmap/josm/plugins/fixAddresses/FixAddressesPreferences.java
r30348 r32771 25 25 */ 26 26 public static class Factory implements PreferenceSettingFactory { 27 @Override 27 28 public PreferenceSetting createPreferenceSetting() { 28 29 return new FixAddressesPreferences(); -
applications/editors/josm/plugins/FixAddresses/src/org/openstreetmap/josm/plugins/fixAddresses/FixUnresolvedStreetsAction.java
r32445 r32771 66 66 Collection<? extends OsmPrimitive> selection) { 67 67 // Enable button if there is either a selection or at least a data set 68 setEnabled( selection != null && !selection.isEmpty() || 69 (getLayerManager().getEditDataSet() != null)); 68 setEnabled((selection != null && !selection.isEmpty()) || getLayerManager().getEditDataSet() != null); 70 69 } 71 70 -
applications/editors/josm/plugins/FixAddresses/src/org/openstreetmap/josm/plugins/fixAddresses/GuessAddressRunnable.java
r32445 r32771 195 195 196 196 // TODO: Put in separate file 197 private class GuessStreetValueHandler extends GuessedValueHandler {197 private static class GuessStreetValueHandler extends GuessedValueHandler { 198 198 public GuessStreetValueHandler(String tag) { 199 199 this(tag, null); -
applications/editors/josm/plugins/FixAddresses/src/org/openstreetmap/josm/plugins/fixAddresses/IOSMEntity.java
r30348 r32771 66 66 public void visit(IAllKnowingTrashHeap trashHeap, IProblemVisitor visitor); 67 67 68 @Override 68 69 int compareTo(IOSMEntity o); 69 70 } -
applications/editors/josm/plugins/FixAddresses/src/org/openstreetmap/josm/plugins/fixAddresses/gui/AddressEditTableModel.java
r30348 r32771 108 108 } 109 109 110 @Override 110 111 public void mouseClicked(MouseEvent e) { 111 112 TableColumnModel colModel = table.getColumnModel(); … … 141 142 * Internal base class to sort items by different columns. 142 143 */ 143 protected abstract class ColumnSorter<E> implements Comparator<E> {144 protected static abstract class ColumnSorter<E> implements Comparator<E> { 144 145 private int column; 145 146 private boolean ascending; -
applications/editors/josm/plugins/FixAddresses/src/org/openstreetmap/josm/plugins/fixAddresses/gui/IncompleteAddressesTableModel.java
r30348 r32771 117 117 * Internal class StreetModelSorter. 118 118 */ 119 class IncompleteAddressModelSorter extends ColumnSorter<OSMAddress> {119 static class IncompleteAddressModelSorter extends ColumnSorter<OSMAddress> { 120 120 121 121 /** -
applications/editors/josm/plugins/FixAddresses/src/org/openstreetmap/josm/plugins/fixAddresses/gui/StreetTableModel.java
r30348 r32771 105 105 * Internal class StreetModelSorter. 106 106 */ 107 class StreetModelSorter extends ColumnSorter<OSMStreet> {107 static class StreetModelSorter extends ColumnSorter<OSMStreet> { 108 108 109 109 public StreetModelSorter(int column, boolean asc) { … … 111 111 } 112 112 113 @Override 113 114 public int compare(OSMStreet arg0, OSMStreet arg1) { 114 115 if (arg0 == null || arg1 == null) return 0; … … 128 129 } 129 130 case 2: 130 return new Integer(arg0.getNumberOfAddresses()).131 compareTo( new Integer(arg1.getNumberOfAddresses()));131 return Integer.valueOf(arg0.getNumberOfAddresses()). 132 compareTo(Integer.valueOf(arg1.getNumberOfAddresses())); 132 133 default: 133 134 } -
applications/editors/josm/plugins/FixAddresses/src/org/openstreetmap/josm/plugins/fixAddresses/gui/UnresolvedAddressesTableModel.java
r30348 r32771 128 128 * Internal class StreetModelSorter. 129 129 */ 130 class UnresolvedAddressModelSorter extends ColumnSorter<OSMAddress> {130 static class UnresolvedAddressModelSorter extends ColumnSorter<OSMAddress> { 131 131 132 132 public UnresolvedAddressModelSorter(int column, boolean asc) {
Note:
See TracChangeset
for help on using the changeset viewer.