Changeset 31811 in osm
- Timestamp:
- 2015-12-11T22:41:01+01:00 (9 years ago)
- Location:
- applications/editors/josm/plugins/mapillary/src/org/openstreetmap/josm/plugins/mapillary
- Files:
-
- 15 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/mapillary/src/org/openstreetmap/josm/plugins/mapillary/MapillaryImage.java
r31797 r31811 18 18 private String user; 19 19 /** Set of traffic signs in the image. */ 20 private List<String> signs;20 private final List<String> signs = new ArrayList<>(); 21 21 /** Where the picture was taken. */ 22 22 private String location; … … 37 37 super(lat, lon, ca); 38 38 this.key = key; 39 this.signs = new ArrayList<>();40 39 } 41 40 -
applications/editors/josm/plugins/mapillary/src/org/openstreetmap/josm/plugins/mapillary/actions/MapillaryExportAction.java
r31787 r31811 115 115 116 116 private class OKAction implements ActionListener { 117 private JOptionPane pane;117 private final JOptionPane pane; 118 118 119 119 public OKAction(JOptionPane pane) { … … 128 128 129 129 private class CancelAction implements ActionListener { 130 private JOptionPane pane;130 private final JOptionPane pane; 131 131 132 132 public CancelAction(JOptionPane pane) { -
applications/editors/josm/plugins/mapillary/src/org/openstreetmap/josm/plugins/mapillary/actions/MapillaryWalkAction.java
r31799 r31811 27 27 * 28 28 */ 29 public class MapillaryWalkAction extends JosmAction implements 30 MapillaryDataListener { 29 public class MapillaryWalkAction extends JosmAction implements MapillaryDataListener { 31 30 32 31 private static final long serialVersionUID = 3454223919402245818L; 33 32 34 33 private WalkThread thread = null; 35 private ArrayList<WalkListener> listeners = new ArrayList<>();34 private final ArrayList<WalkListener> listeners = new ArrayList<>(); 36 35 37 36 /** -
applications/editors/josm/plugins/mapillary/src/org/openstreetmap/josm/plugins/mapillary/gui/HyperlinkLabel.java
r31799 r31811 114 114 private static final long serialVersionUID = 1384054752970921552L; 115 115 116 private JMenuItem copy;117 private JMenuItem copyTag;118 private JMenuItem edit;116 private final JMenuItem copy; 117 private final JMenuItem copyTag; 118 private final JMenuItem edit; 119 119 120 120 public LinkPopUp() { -
applications/editors/josm/plugins/mapillary/src/org/openstreetmap/josm/plugins/mapillary/gui/MapillaryExportDialog.java
r31787 r31811 147 147 private static final long serialVersionUID = -9103251296651015563L; 148 148 private String lastPath; 149 private MapillaryExportDialog dlg;149 private final MapillaryExportDialog dlg; 150 150 151 151 /** -
applications/editors/josm/plugins/mapillary/src/org/openstreetmap/josm/plugins/mapillary/gui/MapillaryHistoryDialog.java
r31797 r31811 56 56 private static MapillaryHistoryDialog instance; 57 57 58 private transient UndoRedoSelectionListener undoSelectionListener;59 private transient UndoRedoSelectionListener redoSelectionListener;58 private final transient UndoRedoSelectionListener undoSelectionListener; 59 private final transient UndoRedoSelectionListener redoSelectionListener; 60 60 61 61 private final DefaultTreeModel undoTreeModel = new DefaultTreeModel( … … 66 66 private final JTree redoTree = new JTree(this.redoTreeModel); 67 67 68 private JSeparator separator = new JSeparator();69 private Component spacer = Box.createRigidArea(new Dimension(0, 3));70 71 private SideButton undoButton;72 private SideButton redoButton;73 74 private ConcurrentHashMap<Object, MapillaryCommand> map;68 private final JSeparator separator = new JSeparator(); 69 private final Component spacer = Box.createRigidArea(new Dimension(0, 3)); 70 71 private final SideButton undoButton; 72 private final SideButton redoButton; 73 74 private final ConcurrentHashMap<Object, MapillaryCommand> map; 75 75 76 76 private MapillaryHistoryDialog() { -
applications/editors/josm/plugins/mapillary/src/org/openstreetmap/josm/plugins/mapillary/history/MapillaryRecord.java
r31797 r31811 19 19 private static MapillaryRecord instance; 20 20 21 private ArrayList<MapillaryRecordListener> listeners;21 private final ArrayList<MapillaryRecordListener> listeners = new ArrayList<>(); 22 22 23 23 /** The set of commands that have taken place or that have been undone. */ … … 32 32 this.commandList = new ArrayList<>(); 33 33 this.position = -1; 34 this.listeners = new ArrayList<>();35 34 } 36 35 -
applications/editors/josm/plugins/mapillary/src/org/openstreetmap/josm/plugins/mapillary/history/commands/CommandDelete.java
r31788 r31811 18 18 public class CommandDelete extends MapillaryExecutableCommand { 19 19 20 private HashMap<MapillaryAbstractImage, Integer> changesHash;20 private final HashMap<MapillaryAbstractImage, Integer> changesHash = new HashMap<>(); 21 21 22 22 /** … … 28 28 public CommandDelete(List<MapillaryAbstractImage> images) { 29 29 super(images); 30 this.changesHash = new HashMap<>();31 30 } 32 31 -
applications/editors/josm/plugins/mapillary/src/org/openstreetmap/josm/plugins/mapillary/io/download/MapillarySquareDownloadManagerThread.java
r31799 r31811 37 37 private final String signQueryString; 38 38 39 private ThreadPoolExecutor downloadExecutor = new ThreadPoolExecutor(3, 5,39 private final ThreadPoolExecutor downloadExecutor = new ThreadPoolExecutor(3, 5, 40 40 25, TimeUnit.SECONDS, new ArrayBlockingQueue<Runnable>(5)); 41 private ThreadPoolExecutor completeExecutor = new ThreadPoolExecutor(3, 5,41 private final ThreadPoolExecutor completeExecutor = new ThreadPoolExecutor(3, 5, 42 42 25, TimeUnit.SECONDS, new ArrayBlockingQueue<Runnable>(5)); 43 private ThreadPoolExecutor signsExecutor = new ThreadPoolExecutor(3, 5, 25,43 private final ThreadPoolExecutor signsExecutor = new ThreadPoolExecutor(3, 5, 25, 44 44 TimeUnit.SECONDS, new ArrayBlockingQueue<Runnable>(5)); 45 45 -
applications/editors/josm/plugins/mapillary/src/org/openstreetmap/josm/plugins/mapillary/io/export/MapillaryExportDownloadThread.java
r31787 r31811 29 29 ICachedLoaderListener { 30 30 31 private ArrayBlockingQueue<BufferedImage> queue;32 private ArrayBlockingQueue<MapillaryAbstractImage> queueImages;31 private final ArrayBlockingQueue<BufferedImage> queue; 32 private final ArrayBlockingQueue<MapillaryAbstractImage> queueImages; 33 33 34 private MapillaryImage image;34 private final MapillaryImage image; 35 35 36 36 /** -
applications/editors/josm/plugins/mapillary/src/org/openstreetmap/josm/plugins/mapillary/io/export/MapillaryExportManager.java
r31787 r31811 34 34 public class MapillaryExportManager extends PleaseWaitRunnable { 35 35 36 private ArrayBlockingQueue<BufferedImage> queue;37 private ArrayBlockingQueue<MapillaryAbstractImage> queueImages;36 private final ArrayBlockingQueue<BufferedImage> queue; 37 private final ArrayBlockingQueue<MapillaryAbstractImage> queueImages; 38 38 39 39 private final int amount; -
applications/editors/josm/plugins/mapillary/src/org/openstreetmap/josm/plugins/mapillary/mode/SelectMode.java
r31787 r31811 36 36 private MapillaryAbstractImage closest; 37 37 private MapillaryAbstractImage lastClicked; 38 private MapillaryRecord record;38 private final MapillaryRecord record; 39 39 private boolean nothingHighlighted; 40 40 private boolean imageHighlighted = false; -
applications/editors/josm/plugins/mapillary/src/org/openstreetmap/josm/plugins/mapillary/oauth/OAuthPortListener.java
r31808 r31811 29 29 I18n.tr("Login successful, return to JOSM.") 30 30 ); 31 private MapillaryLoginListener callback;31 private final MapillaryLoginListener callback; 32 32 33 33 public OAuthPortListener(MapillaryLoginListener loginCallback) { -
applications/editors/josm/plugins/mapillary/src/org/openstreetmap/josm/plugins/mapillary/oauth/UploadUtils.java
r31787 r31811 57 57 58 58 private static class SequenceUploadThread extends Thread { 59 private List<MapillaryAbstractImage> images;60 private UUID uuid;61 private boolean delete;59 private final List<MapillaryAbstractImage> images; 60 private final UUID uuid; 61 private final boolean delete; 62 62 ThreadPoolExecutor ex; 63 63 … … 101 101 private static class SingleUploadThread extends Thread { 102 102 103 private MapillaryImportedImage image;104 private UUID uuid;103 private final MapillaryImportedImage image; 104 private final UUID uuid; 105 105 106 106 private SingleUploadThread(MapillaryImportedImage image, UUID uuid) { -
applications/editors/josm/plugins/mapillary/src/org/openstreetmap/josm/plugins/mapillary/traffico/TrafficoSignElement.java
r31787 r31811 6 6 public class TrafficoSignElement { 7 7 8 private Color color;9 private char glyph;8 private final Color color; 9 private final char glyph; 10 10 11 11 public TrafficoSignElement(char glyph, Color c) {
Note:
See TracChangeset
for help on using the changeset viewer.