Changeset 8126 in josm for trunk/src/org/openstreetmap/josm/tools
- Timestamp:
- 2015-03-08T23:39:57+01:00 (11 years ago)
- Location:
- trunk/src/org/openstreetmap/josm/tools
- Files:
-
- 6 edited
-
AudioPlayer.java (modified) (1 diff)
-
BugReportExceptionHandler.java (modified) (1 diff)
-
I18n.java (modified) (2 diffs)
-
ImageProvider.java (modified) (1 diff)
-
MultikeyActionsHandler.java (modified) (1 diff)
-
RightAndLefthandTraffic.java (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/tools/AudioPlayer.java
r7025 r8126 26 26 public final class AudioPlayer extends Thread { 27 27 28 private static AudioPlayer audioPlayer = null; 28 private static volatile AudioPlayer audioPlayer = null; 29 29 30 30 private enum State { INITIALIZING, NOTPLAYING, PLAYING, PAUSED, INTERRUPTED } -
trunk/src/org/openstreetmap/josm/tools/BugReportExceptionHandler.java
r8018 r8126 42 42 43 43 private static boolean handlingInProgress = false; 44 private static BugReporterThread bugReporterThread = null; 44 private static volatile BugReporterThread bugReporterThread = null; 45 45 private static int exceptionCounter = 0; 46 46 private static boolean suppressExceptionDialogs = false; -
trunk/src/org/openstreetmap/josm/tools/I18n.java
r7901 r8126 76 76 } 77 77 78 private static PluralMode pluralMode = PluralMode.MODE_NOTONE; /* english default */ 79 private static String loadedCode = "en"; 78 private static volatile PluralMode pluralMode = PluralMode.MODE_NOTONE; /* english default */ 79 private static volatile String loadedCode = "en"; 80 80 81 81 /* Localization keys for file chooser (and color chooser). */ … … 164 164 "OptionPane.cancelButtonText" 165 165 }; 166 private static Map<String, String> strings = null; 167 private static Map<String, String[]> pstrings = null; 166 private static volatile Map<String, String> strings = null; 167 private static volatile Map<String, String[]> pstrings = null; 168 168 private static Map<String, PluralMode> languages = new HashMap<>(); 169 169 -
trunk/src/org/openstreetmap/josm/tools/ImageProvider.java
r8102 r8126 1356 1356 } 1357 1357 1358 private static SVGUniverse getSvgUniverse() { 1358 private static synchronized SVGUniverse getSvgUniverse() { 1359 1359 if (svgUniverse == null) { 1360 1360 svgUniverse = new SVGUniverse(); -
trunk/src/org/openstreetmap/josm/tools/MultikeyActionsHandler.java
r7937 r8126 124 124 * @return The unique instance of this class 125 125 */ 126 public static MultikeyActionsHandler getInstance() { 126 public static synchronized MultikeyActionsHandler getInstance() { 127 127 if (instance == null) { 128 128 instance = new MultikeyActionsHandler(); -
trunk/src/org/openstreetmap/josm/tools/RightAndLefthandTraffic.java
r7509 r8126 7 7 import java.util.ArrayList; 8 8 import java.util.Collection; 9 9 10 import org.openstreetmap.josm.data.coor.LatLon; 10 11 import org.openstreetmap.josm.data.osm.BBox; … … 47 48 } 48 49 49 private static Collection<Area> leftHandTrafficPolygons; 50 private static GeoPropertyIndex<Boolean> rlCache; 50 private static volatile Collection<Area> leftHandTrafficPolygons; 51 private static volatile GeoPropertyIndex<Boolean> rlCache; 51 52 52 53 /**
Note:
See TracChangeset
for help on using the changeset viewer.
