Changeset 10938 in josm for trunk/src/org/openstreetmap/josm/data
- Timestamp:
- 2016-09-03T12:37:39+02:00 (8 years ago)
- Location:
- trunk/src/org/openstreetmap/josm/data
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/AutosaveTask.java
r10621 r10938 94 94 private final Set<DataSet> changedDatasets = new HashSet<>(); 95 95 private final List<AutosaveLayerInfo> layersInfo = new ArrayList<>(); 96 private Timer timer;97 96 private final Object layersLock = new Object(); 98 97 private final Deque<File> deletedLayers = new LinkedList<>(); … … 132 131 } 133 132 134 timer = new Timer(true); 135 timer.schedule(this, 1000L, PROP_INTERVAL.get() * 1000L); 133 new Timer(true).schedule(this, 1000L, PROP_INTERVAL.get() * 1000L); 136 134 Main.getLayerManager().addLayerChangeListener(this, true); 137 135 } -
trunk/src/org/openstreetmap/josm/data/cache/BufferedImageCacheEntry.java
r10723 r10938 18 18 // transient to avoid serialization, volatile to avoid synchronization of whole getImage() method 19 19 private transient volatile BufferedImage img; 20 private transient volatile boolean writtenToDisk;21 20 // we need to have separate control variable, to know, if we already tried to load the image, as img might be null 22 21 // after we loaded image, as for example, when image file is malformed (eg. HTML file) … … 79 78 } 80 79 out.writeObject(this); 81 // ugly hack to wait till element will get to disk to clean the memory82 writtenToDisk = true;83 80 84 81 if (img != null) { -
trunk/src/org/openstreetmap/josm/data/projection/proj/ObliqueMercator.java
r10378 r10938 159 159 * Constants used in the transformation. 160 160 */ 161 private double b, a,e;162 163 /** 164 * Convenience value equal to {@ link #a} / {@link #b}.161 private double b, e; 162 163 /** 164 * Convenience value equal to {@code a} / {@link #b}. 165 165 */ 166 166 private double arb; 167 167 168 168 /** 169 * Convenience value equal to {@ link #a}×{@link #b}.169 * Convenience value equal to {@code a}×{@link #b}. 170 170 */ 171 171 private double ab; 172 172 173 173 /** 174 * Convenience value equal to {@link #b} / {@ link #a}.174 * Convenience value equal to {@link #b} / {@code a}. 175 175 */ 176 176 private double bra; … … 237 237 double temp = cosph0 * cosph0; 238 238 b = Math.sqrt(1.0 + e2 * (temp * temp) / (1.0 - e2)); 239 a = b * com / con;239 double a = b * com / con; 240 240 final double d = b * com / (cosph0 * Math.sqrt(con)); 241 241 double f = d * d - 1.0;
Note:
See TracChangeset
for help on using the changeset viewer.