Changeset 9078 in josm for trunk/src/org/openstreetmap/josm/tools
- Timestamp:
- 2015-12-02T00:05:09+01:00 (8 years ago)
- Location:
- trunk/src/org/openstreetmap/josm/tools
- Files:
-
- 10 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/tools/AudioPlayer.java
r8928 r9078 36 36 private State state; 37 37 private URL playingUrl; 38 private double leadIn; // seconds39 private double calibration; // ratio of purported duration of samples to true duration38 private final double leadIn; // seconds 39 private final double calibration; // ratio of purported duration of samples to true duration 40 40 private double position; // seconds 41 41 private double bytesPerSecond; … … 114 114 } 115 115 116 private Execute command;116 private final Execute command; 117 117 118 118 /** -
trunk/src/org/openstreetmap/josm/tools/CompositeList.java
r8510 r9078 13 13 */ 14 14 public class CompositeList<T> extends AbstractList<T> { 15 private List<? extends T> a, b;15 private final List<? extends T> a, b; 16 16 17 17 /** -
trunk/src/org/openstreetmap/josm/tools/ImageOverlay.java
r8723 r9078 1 1 // License: GPL. For details, see LICENSE file. 2 2 package org.openstreetmap.josm.tools; 3 4 import org.openstreetmap.josm.gui.layer.ImageProcessor;5 3 6 4 import java.awt.Dimension; … … 8 6 9 7 import javax.swing.ImageIcon; 8 9 import org.openstreetmap.josm.gui.layer.ImageProcessor; 10 10 11 11 /** class to describe how image overlay … … 16 16 public ImageProvider image; 17 17 /** offset of the image from left border, values between 0 and 1 */ 18 private double offsetLeft;18 private final double offsetLeft; 19 19 /** offset of the image from top border, values between 0 and 1 */ 20 private double offsetRight;20 private final double offsetRight; 21 21 /** offset of the image from right border, values between 0 and 1*/ 22 private double offsetTop;22 private final double offsetTop; 23 23 /** offset of the image from bottom border, values between 0 and 1 */ 24 private double offsetBottom;24 private final double offsetBottom; 25 25 26 26 /** -
trunk/src/org/openstreetmap/josm/tools/ImageResource.java
r8840 r9078 28 28 * Caches the image data for resized versions of the same image. 29 29 */ 30 private Map<Dimension, Image> imgCache = new HashMap<>();30 private final Map<Dimension, Image> imgCache = new HashMap<>(); 31 31 /** 32 32 * SVG diagram information in case of SVG vector image. -
trunk/src/org/openstreetmap/josm/tools/MultikeyActionsHandler.java
r8870 r9078 32 32 private static final String STATUS_BAR_ID = "multikeyShortcut"; 33 33 34 private Map<MultikeyShortcutAction, MyAction> myActions = new HashMap<>();34 private final Map<MultikeyShortcutAction, MyAction> myActions = new HashMap<>(); 35 35 36 36 private final class ShowLayersPopupWorker implements Runnable { … … 188 188 private long lastTimestamp; 189 189 private MyAction lastAction; 190 private Timer timer;190 private final Timer timer; 191 191 192 192 private MultikeyActionsHandler() { -
trunk/src/org/openstreetmap/josm/tools/TextTagParser.java
r9073 r9078 42 42 private boolean quotesStarted; 43 43 private boolean esc; 44 private StringBuilder s = new StringBuilder(200);44 private final StringBuilder s = new StringBuilder(200); 45 45 private int pos; 46 private String data;47 private int n;46 private final String data; 47 private final int n; 48 48 49 49 public TextAnalyzer(String text) { -
trunk/src/org/openstreetmap/josm/tools/XmlObjectParser.java
r8856 r9078 64 64 65 65 private class Parser extends DefaultHandler { 66 private Stack<Object> current = new Stack<>();66 private final Stack<Object> current = new Stack<>(); 67 67 private StringBuilder characters = new StringBuilder(64); 68 68 … … 182 182 183 183 private static class Entry { 184 private Class<?> klass;185 private boolean onStart;186 private boolean both;184 private final Class<?> klass; 185 private final boolean onStart; 186 private final boolean both; 187 187 private final Map<String, Field> fields = new HashMap<>(); 188 188 private final Map<String, Method> methods = new HashMap<>(); … … 225 225 } 226 226 227 private Map<String, Entry> mapping = new HashMap<>();228 private DefaultHandler parser;227 private final Map<String, Entry> mapping = new HashMap<>(); 228 private final DefaultHandler parser; 229 229 230 230 /** 231 231 * The queue of already parsed items from the parsing thread. 232 232 */ 233 private List<Object> queue = new LinkedList<>();233 private final List<Object> queue = new LinkedList<>(); 234 234 private Iterator<Object> queueIterator; 235 235 -
trunk/src/org/openstreetmap/josm/tools/date/FallbackDateParser.java
r8836 r9078 36 36 }; 37 37 38 private List<DateFormat> dateParsers;38 private final List<DateFormat> dateParsers; 39 39 private int activeDateParser; 40 40 -
trunk/src/org/openstreetmap/josm/tools/date/PrimaryDateParser.java
r9062 r9078 20 20 public class PrimaryDateParser { 21 21 private DatatypeFactory datatypeFactory; 22 private FallbackDateParser fallbackDateParser;23 private Calendar calendar;22 private final FallbackDateParser fallbackDateParser; 23 private final Calendar calendar; 24 24 25 25 /** -
trunk/src/org/openstreetmap/josm/tools/template_engine/Tokenizer.java
r8846 r9078 50 50 private int index; 51 51 private Token currentToken; 52 private StringBuilder text = new StringBuilder();52 private final StringBuilder text = new StringBuilder(); 53 53 54 54 public Tokenizer(String template) {
Note: See TracChangeset
for help on using the changeset viewer.