Changeset 9205 in josm
- Timestamp:
- 2015-12-28T21:25:25+01:00 (9 years ago)
- Location:
- trunk
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/.classpath
r8632 r9205 27 27 <classpathentry kind="lib" path="test/lib/fest/debug-1.0.jar"/> 28 28 <classpathentry exported="true" kind="con" path="GROOVY_DSL_SUPPORT"/> 29 <classpathentry kind="lib" path="tools/findbugs/annotations.jar"/> 29 30 <classpathentry kind="output" path="bin"/> 30 31 </classpath> -
trunk/build.xml
r9133 r9205 301 301 <pathelement path="dist/josm-custom.jar"/> 302 302 <pathelement path="${groovy.jar}"/> 303 <pathelement path="tools/findbugs/annotations.jar"/> 303 304 </path> 304 305 <macrodef name="init-test-preferences"> -
trunk/src/org/openstreetmap/josm/Main.java
r9087 r9205 556 556 main = this; 557 557 isOpenjdk = System.getProperty("java.vm.name").toUpperCase(Locale.ENGLISH).indexOf("OPENJDK") != -1; 558 fileWatcher.start(); 558 559 559 560 new InitializationTask(tr("Executing platform startup hook")) { -
trunk/src/org/openstreetmap/josm/io/FileWatcher.java
r8510 r9205 31 31 32 32 private WatchService watcher; 33 private Thread thread; 33 34 34 35 private final Map<Path, StyleSource> styleMap = new HashMap<>(); … … 41 42 try { 42 43 watcher = FileSystems.getDefault().newWatchService(); 43 new Thread(new Runnable() {44 thread = new Thread(new Runnable() { 44 45 @Override 45 46 public void run() { 46 47 processEvents(); 47 48 } 48 }, "File Watcher") .start();49 }, "File Watcher"); 49 50 } catch (IOException e) { 50 51 Main.error(e); 52 } 53 } 54 55 /** 56 * Starts the File Watcher thread. 57 */ 58 public final void start() { 59 if (!thread.isAlive()) { 60 thread.start(); 51 61 } 52 62 } -
trunk/test/performance/org/openstreetmap/josm/PerformanceTestUtils.java
r8632 r9205 1 1 // License: GPL. For details, see LICENSE file. 2 2 package org.openstreetmap.josm; 3 4 import edu.umd.cs.findbugs.annotations.SuppressFBWarnings; 3 5 4 6 /** … … 37 39 * @return A {@link PerformanceTestTimer} object of which you can call {@link PerformanceTestTimer#done()} when done. 38 40 */ 41 @SuppressFBWarnings(value = "DM_GC", justification = "Performance test code") 39 42 public static PerformanceTestTimer startTimer(String name) { 40 43 System.gc(); -
trunk/test/unit/org/openstreetmap/josm/actions/mapmode/SelectActionTest.java
r8949 r9205 36 36 @Override 37 37 public synchronized int getInteger(String key, int def) { 38 if ( key == "edit.initial-move-delay") {38 if ("edit.initial-move-delay".equals(key)) { 39 39 return 0; 40 40 } else {
Note:
See TracChangeset
for help on using the changeset viewer.