Ticket #19505: osm.diff
| File osm.diff, 19.4 KB (added by , 6 years ago) |
|---|
-
ide/netbeans/nbproject/configs/local_preferences.properties
# This patch file was generated by NetBeans IDE # Following Index: paths are relative to: /mnt/WD-Elements-25A1/src/josm-svn/josm # This patch can be applied using context Tools: Patch action on respective folder. # It uses platform neutral UTF-8 encoding and \n newlines. # Above lines and this line are ignored by the patching process.
1 1 $label=local preferences 2 run.jvmargs=-Djosm.home=.josm-local 2 run.jvmargs=-Djosm.home=.josm-local -javaagent:/mnt/WD-Elements-25A1/src/josm-svn/lib/jmockit-1.42.jar -
ide/netbeans/nbproject/genfiles.properties
3 3 nbbuild.xml.stylesheet.CRC32=8064a381@1.75.2.48 4 4 # This file is used by a NetBeans-based IDE to track changes in generated files such as build-impl.xml. 5 5 # Do not edit this file. You may delete it but then the IDE will never regenerate such files for you. 6 nbproject/build-impl.xml.data.CRC32= f36994fb7 nbproject/build-impl.xml.script.CRC32= 250d22b48 nbproject/build-impl.xml.stylesheet.CRC32=f89f7d21@1.9 4.0.486 nbproject/build-impl.xml.data.CRC32=d23a24ee 7 nbproject/build-impl.xml.script.CRC32=0ef72d93 8 nbproject/build-impl.xml.stylesheet.CRC32=f89f7d21@1.96.0.48 -
ide/netbeans/nbproject/project.properties
1 #Wed, 08 Jul 2020 15:54:10 +0200 1 2 annotation.processing.enabled=true 2 3 annotation.processing.enabled.in.editor=false 3 4 annotation.processing.processors.list= 4 5 annotation.processing.run.all.processors=true 5 6 annotation.processing.source.output=${build.generated.sources.dir}/ap-source-output 6 application.homepage=https ://josm.openstreetmap.de/7 application.homepage=https\://josm.openstreetmap.de/ 7 8 application.title=josm 8 9 application.vendor= 9 10 build.classes.dir=${build.dir}/classes … … 19 20 buildfile=nbbuild.xml 20 21 # Uncomment to specify the preferred debugger connection transport: 21 22 #debug.transport=dt_socket 22 debug.classpath= \23 ${run.classpath}24 debug.test.classpath= \25 ${run.test.classpath}23 debug.classpath=${run.classpath} 24 debug.modulepath=${run.modulepath} 25 debug.test.classpath=${run.test.classpath} 26 debug.test.modulepath=${run.test.modulepath} 26 27 # Files in build.classes.dir which should be excluded from distribution jar 27 28 dist.archive.excludes= 28 29 # This directory is removed when the project is cleaned: … … 31 32 dist.javadoc.dir=${dist.dir}/javadoc 32 33 endorsed.classpath= 33 34 excludes=org/apache/commons/jcs3/JCS.java,org/apache/commons/jcs3/access/GroupCacheAccess.java,org/apache/commons/jcs3/access/PartitionedCacheAccess.java,org/apache/commons/jcs3/access/behavior/IGroupCacheAccess.java,org/apache/commons/jcs3/access/exception/InvalidGroupException.java,org/apache/commons/jcs3/admin/servlet/**,org/apache/commons/jcs3/auxiliary/AbstractAuxiliaryCacheMonitor.java,org/apache/commons/jcs3/auxiliary/disk/jdbc/**,org/apache/commons/jcs3/auxiliary/lateral/**,org/apache/commons/jcs3/auxiliary/remote/AbstractRemoteAuxiliaryCache.java,org/apache/commons/jcs3/auxiliary/remote/AbstractRemoteCacheListener.java,org/apache/commons/jcs3/auxiliary/remote/AbstractRemoteCacheNoWaitFacade.java,org/apache/commons/jcs3/auxiliary/remote/RemoteCache.java,org/apache/commons/jcs3/auxiliary/remote/RemoteCacheFactory.java,org/apache/commons/jcs3/auxiliary/remote/RemoteCacheFailoverRunner.java,org/apache/commons/jcs3/auxiliary/remote/RemoteCacheListener.java,org/apache/commons/jcs3/auxiliary/remote/RemoteCacheManager.java,org/apache/commons/jcs3/auxiliary/remote/RemoteCacheMonitor.java,org/apache/commons/jcs3/auxiliary/remote/RemoteCacheNoWait.java,org/apache/commons/jcs3/auxiliary/remote/RemoteCacheNoWaitFacade.java,org/apache/commons/jcs3/auxiliary/remote/RemoteCacheRestore.java,org/apache/commons/jcs3/auxiliary/remote/http/**,org/apache/commons/jcs3/auxiliary/remote/server/RemoteCacheStartupServlet.java,org/apache/commons/jcs3/auxiliary/remote/server/TimeoutConfigurableRMISocketFactory.java,org/apache/commons/jcs3/engine/CacheAdaptor.java,org/apache/commons/jcs3/engine/CacheGroup.java,org/apache/commons/jcs3/engine/CacheWatchRepairable.java,org/apache/commons/jcs3/engine/ZombieCacheService.java,org/apache/commons/jcs3/engine/ZombieCacheServiceNonLocal.java,org/apache/commons/jcs3/engine/ZombieCacheWatch.java,org/apache/commons/jcs3/engine/logging/CacheEventLoggerDebugLogger.java,org/apache/commons/jcs3/utils/access/**,org/apache/commons/jcs3/utils/discovery/**,org/apache/commons/jcs3/utils/net/**,org/apache/commons/jcs3/utils/props/**,org/apache/commons/jcs3/utils/servlet/**,org/apache/commons/logging/impl/AvalonLogger.java,org/apache/commons/logging/impl/Jdk13LumberjackLogger.java,org/apache/commons/logging/impl/Log4JLogger.java,org/apache/commons/logging/impl/LogKitLogger.java,org/apache/commons/logging/impl/ServletContextCleaner.java,org/openstreetmap/gui/jmapviewer/Demo.java,org/openstreetmap/gui/jmapviewer/JMapViewerTree.java,org/openstreetmap/gui/jmapviewer/checkBoxTree/**,org/apache/commons/compress/archivers/**,org/apache/commons/compress/changes/**,org/apache/commons/compress/parallel/**,org/apache/commons/compress/PasswordRequiredException.java 35 file.reference.annotations-3.0.0.jar=/mnt/WD-Elements-25A1/src/josm-svn/lib/annotations-3.0.0.jar 36 file.reference.apiguardian-api-1.1.0.jar=/mnt/WD-Elements-25A1/src/josm-svn/lib/apiguardian-api-1.1.0.jar 37 file.reference.classgraph-4.8.87.jar=/mnt/WD-Elements-25A1/src/josm-svn/lib/classgraph-4.8.87.jar 34 38 file.reference.commons-lang3-3.8.1.jar=../../tools/commons-lang3-3.8.1.jar 35 39 file.reference.commons-testing-2.1.0.jar=../../test/lib/commons-testing/commons-testing-2.1.0.jar 36 40 file.reference.core-src=../../src 37 41 file.reference.equalsverifier-3.1.2.jar=../../test/lib/equalsverifier-3.1.2.jar 38 file.reference.spotbugs-annotations.jar=../../tools/spotbugs/spotbugs-annotations.jar 39 file.reference.hamcrest-core-1.3.jar=../../test/lib/junit/hamcrest-core-1.3.jar 42 file.reference.hamcrest-all-1.3.jar=/mnt/WD-Elements-25A1/src/josm-svn/lib/hamcrest-all-1.3.jar 40 43 file.reference.jfcunit.jar=../../test/lib/jfcunit.jar 41 file.reference.jmockit.jar=../../test/lib/jmockit.jar 44 file.reference.jmockit-1.42.jar=/mnt/WD-Elements-25A1/src/josm-svn/lib/jmockit-1.42.jar 45 file.reference.jmockit.jar=/mnt/WD-Elements-25A1/src/josm-svn/lib/jmockit.jar 42 46 file.reference.junit-4.12.jar=../../test/lib/junit/junit-4.12.jar 43 file.reference.classgraph.jar=../../test/lib/classgraph-4.6.32.jar 47 file.reference.junit-jupiter-api-5.5.2.jar=/mnt/WD-Elements-25A1/src/josm-svn/lib/junit-jupiter-api-5.5.2.jar 48 file.reference.junit-jupiter-params-5.5.2.jar=/mnt/WD-Elements-25A1/src/josm-svn/lib/junit-jupiter-params-5.5.2.jar 49 file.reference.opentest4j-1.2.0.jar=/mnt/WD-Elements-25A1/src/josm-svn/lib/opentest4j-1.2.0.jar 50 file.reference.slf4j-api-1.7.25.jar=/mnt/WD-Elements-25A1/src/josm-svn/lib/slf4j-api-1.7.25.jar 51 file.reference.slf4j-simple-1.7.27.jar=/mnt/WD-Elements-25A1/src/josm-svn/lib/slf4j-simple-1.7.27.jar 44 52 file.reference.test-functional=../../test/functional 45 53 file.reference.test-performance=../../test/performance 46 54 file.reference.test-unit=../../test/unit 47 55 file.reference.system-rules-1.19.0.jar=../../test/lib/system-rules-1.19.0.jar 56 file.reference.wiremock-jre8-2.23.2.jar=/mnt/WD-Elements-25A1/src/josm-svn/lib/wiremock-jre8-2.23.2.jar 48 57 file.reference.wiremock-standalone-2.20.0.jar=../../test/lib/wiremock-standalone-2.20.0.jar 49 58 file.reference.awaitility-3.1.5.jar=../../test/lib/awaitility-3.1.5.jar 50 59 includes=**/*.java 51 60 jar.compress=false 52 61 javac.classpath=${ivy.classpath} 53 62 # Space-separated list of extra javac options 54 javac.compilerargs=-Xlint :unchecked -Xlint:cast -Xlint:dep-ann -Xlint:divzero -Xlint:empty -Xlint:finally -Xlint:overrides -Xlint:static -Xlint:try -Xlint:deprecation63 javac.compilerargs=-Xlint\:unchecked -Xlint\:cast -Xlint\:dep-ann -Xlint\:divzero -Xlint\:empty -Xlint\:finally -Xlint\:overrides -Xlint\:static -Xlint\:try -Xlint\:deprecation 55 64 javac.deprecation=true 56 65 javac.external.vm=false 57 66 javac.modulepath= 58 67 javac.processormodulepath= 59 javac.processorpath=\ 60 ${javac.classpath} 68 javac.processorpath=${javac.classpath} 61 69 javac.source=1.8 62 70 javac.target=1.8 63 javac.test.classpath=\ 64 ${javac.classpath}:\ 65 ${build.classes.dir}:\ 66 ${file.reference.junit-4.12.jar}:\ 67 ${file.reference.jmockit.jar}:\ 68 ${file.reference.jfcunit.jar}:\ 69 ${file.reference.equalsverifier-3.1.2.jar}:\ 70 ${file.reference.hamcrest-core-1.3.jar}:\ 71 ${file.reference.classgraph.jar}:\ 72 ${file.reference.commons-lang3-3.8.1.jar}:\ 73 ${file.reference.system-rules-1.19.0.jar}:\ 74 ${file.reference.wiremock-standalone-2.20.0.jar}:\ 75 ${file.reference.awaitility-3.1.5.jar}:\ 76 ${file.reference.spotbugs-annotations.jar}:\ 77 ${file.reference.commons-testing-2.1.0.jar} 71 javac.test.classpath=${javac.classpath}\:${build.classes.dir}\:${file.reference.junit-4.12.jar}\:${file.reference.jfcunit.jar}\:${file.reference.equalsverifier-3.1.2.jar}\:${file.reference.commons-lang3-3.8.1.jar}\:${file.reference.system-rules-1.19.0.jar}\:${file.reference.wiremock-standalone-2.20.0.jar}\:${file.reference.awaitility-3.1.5.jar}\:${file.reference.commons-testing-2.1.0.jar}\:${file.reference.junit-jupiter-api-5.5.2.jar}\:${file.reference.wiremock-jre8-2.23.2.jar}\:${file.reference.jmockit-1.42.jar}\:${file.reference.annotations-3.0.0.jar}\:${file.reference.jmockit.jar}\:${file.reference.junit-jupiter-params-5.5.2.jar}\:${file.reference.hamcrest-all-1.3.jar}\:${file.reference.apiguardian-api-1.1.0.jar}\:${file.reference.classgraph-4.8.87.jar}\:${file.reference.opentest4j-1.2.0.jar}\:${file.reference.slf4j-api-1.7.25.jar}\:${file.reference.slf4j-simple-1.7.27.jar} 78 72 javac.test.modulepath=${javac.modulepath} 79 javac.test.processorpath=\ 80 ${javac.test.classpath} 73 javac.test.processorpath=${javac.test.classpath} 81 74 javadoc.additionalparam= 82 75 javadoc.author=false 83 76 javadoc.encoding=${source.encoding} 77 javadoc.html5=false 84 78 javadoc.noindex=false 85 79 javadoc.nonavbar=false 86 80 javadoc.notree=false … … 89 83 javadoc.use=true 90 84 javadoc.version=false 91 85 javadoc.windowtitle= 86 jlink.launcher=false 87 jlink.launcher.name=josm 92 88 main.class=org.openstreetmap.josm.gui.MainApplication 93 89 manifest.file=manifest.mf 94 90 meta.inf.dir=${src.dir}/META-INF 95 91 mkdist.disabled=false 96 platform.active=default_platform 97 run.classpath=\ 98 ${javac.classpath}:\ 99 ${build.classes.dir} 92 platform.active=JDK_1.8 93 run.classpath=${javac.classpath}\:${build.classes.dir} 100 94 run.modulepath=${javac.modulepath} 101 run.test.classpath=\ 102 ${javac.test.classpath}:\ 103 ${build.test.classes.dir} 95 run.test.classpath=${javac.test.classpath}\:${build.test.classes.dir} 104 96 run.test.modulepath=${javac.test.modulepath} 105 97 source.encoding=UTF-8 106 98 src.dir=${file.reference.core-src} 107 99 test.functional.dir=${file.reference.test-functional} 108 100 test.performance.dir=${file.reference.test-performance} 109 101 test.unit.dir=${file.reference.test-unit} 102 103 ivy.classpath=/root/.ivy2/cache/org.openstreetmap.jmapviewer/jmapviewer/jars/jmapviewer-2.14.jar\:/root/.ivy2/cache/javax.json/javax.json-api/bundles/javax.json-api-1.1.4.jar\:/root/.ivy2/cache/org.glassfish/javax.json/bundles/javax.json-1.1.4.jar\:/root/.ivy2/cache/org.apache.commons/commons-jcs3-core/jars/commons-jcs3-core-3.0-SNAPSHOT.jar\:/root/.ivy2/cache/org.apache.commons/commons-compress/jars/commons-compress-1.20.jar\:/root/.ivy2/cache/org.tukaani/xz/jars/xz-1.8.jar\:/root/.ivy2/cache/com.adobe.xmp/xmpcore/jars/xmpcore-6.1.10.jar\:/root/.ivy2/cache/com.drewnoakes/metadata-extractor/jars/metadata-extractor-2.13.0.jar\:/root/.ivy2/cache/ch.poole/OpeningHoursParser/jars/OpeningHoursParser-0.21.4.jar\:/root/.ivy2/cache/oauth.signpost/signpost-core/jars/signpost-core-2.0.0.jar\:/root/.ivy2/cache/org.webjars.npm/tag2link/jars/tag2link-2020.5.16.jar -
ide/netbeans/nbproject/project.xml
4 4 <configuration> 5 5 <data xmlns="http://www.netbeans.org/ns/j2se-project/3"> 6 6 <name>josm</name> 7 <explicit-platform explicit-source-supported="true"/> 7 8 <source-roots> 8 9 <root id="src.dir"/> 9 10 </source-roots> -
src/com/kitfox/svg/ClipPath.java
165 165 166 166 for (int i = 0; i < children.size(); ++i) 167 167 { 168 SVGElement ele = (SVGElement)children.get(i);168 SVGElement ele = children.get(i); 169 169 ele.updateTime(curTime); 170 170 } 171 171 -
src/com/kitfox/svg/Marker.java
235 235 public static class MarkerLayout 236 236 { 237 237 238 private ArrayList<MarkerPos> markerList = new ArrayList<MarkerPos>();238 private final ArrayList<MarkerPos> markerList = new ArrayList<MarkerPos>(); 239 239 boolean started = false; 240 240 241 241 public void layout(Shape shape) … … 339 339 340 340 for (int i = 1; i < markerList.size(); ++i) 341 341 { 342 MarkerPos prev = (MarkerPos)markerList.get(i - 1);343 MarkerPos cur = (MarkerPos)markerList.get(i);342 MarkerPos prev = markerList.get(i - 1); 343 MarkerPos cur = markerList.get(i); 344 344 345 345 if (cur.type == MARKER_START) 346 346 { 347 347 prev.type = MARKER_END; 348 348 } 349 349 } 350 MarkerPos last = (MarkerPos)markerList.get(markerList.size() - 1);350 MarkerPos last = markerList.get(markerList.size() - 1); 351 351 last.type = MARKER_END; 352 352 } 353 353 -
src/com/kitfox/svg/SVGDiagram.java
203 203 204 204 public SVGElement getElement(String name) 205 205 { 206 return (SVGElement)idMap.get(name);206 return idMap.get(name); 207 207 } 208 208 209 209 public void setElement(String name, SVGElement node) -
src/com/kitfox/svg/SVGElement.java
452 452 453 453 protected SVGElement getParentContext() 454 454 { 455 return contexts.isEmpty() ? null : (SVGElement)contexts.getLast();455 return contexts.isEmpty() ? null : contexts.getLast(); 456 456 } 457 457 458 458 public SVGRoot getRoot() -
src/com/kitfox/svg/SVGLoader.java
197 197 198 198 try { 199 199 Class<?> cls = (Class<?>)obj; 200 @SuppressWarnings("deprecation") 200 201 SVGElement svgEle = (SVGElement)cls.newInstance(); 201 202 202 203 SVGElement parent = null; -
src/com/kitfox/svg/SVGUniverse.java
142 142 return curTime; 143 143 } 144 144 145 @SuppressWarnings("deprecation") 145 146 public void setCurTime(double curTime) 146 147 { 147 148 double oldTime = this.curTime; -
src/com/kitfox/svg/pathcmd/Arc.java
133 133 134 134 // Ensure radii are valid 135 135 if (rx == 0 || ry == 0) { 136 path.lineTo( (float) x, (float)y);136 path.lineTo(x, y); 137 137 return; 138 138 } 139 139 -
src/com/kitfox/svg/xml/StyleSheet.java
33 33 public boolean getStyle(StyleAttribute attrib, String tagName, String cssClass) 34 34 { 35 35 StyleSheetRule rule = new StyleSheetRule(attrib.getName(), tagName, cssClass); 36 String value = (String)ruleMap.get(rule);36 String value = ruleMap.get(rule); 37 37 38 38 if (value != null) 39 39 { … … 43 43 44 44 //Try again using just class name 45 45 rule = new StyleSheetRule(attrib.getName(), null, cssClass); 46 value = (String)ruleMap.get(rule);46 value = ruleMap.get(rule); 47 47 48 48 if (value != null) 49 49 { … … 53 53 54 54 //Try again using just tag name 55 55 rule = new StyleSheetRule(attrib.getName(), tagName, null); 56 value = (String)ruleMap.get(rule);56 value = ruleMap.get(rule); 57 57 58 58 if (value != null) 59 59 { -
src/org/openstreetmap/josm/tools/I18n.java
384 384 try { 385 385 // First check we're able to open a stream to our own SPI file 386 386 // Java will fail on Windows if the jar file is in a folder with a space character! 387 I18n.class.getResourceAsStream("/META-INF/services/java.text.spi.DecimalFormatSymbolsProvider").close();387 java.io.InputStream is = I18n.class.getResourceAsStream("/META-INF/services/java.text.spi.DecimalFormatSymbolsProvider"); 388 388 // Don't call Utils.updateSystemProperty to avoid spurious log at startup 389 if (is != null) { 390 is.close(); 391 // Don't call Utils.updateSystemProperty to avoid spurious log at startup 389 392 return System.setProperty("java.locale.providers", "SPI,JRE,CLDR"); 393 } 394 return System.setProperty("java.locale.providers", "JRE,CLDR"); 390 395 } catch (RuntimeException | IOException e) { 391 396 // Don't call Logging class, it may not be fully initialized yet 392 397 System.err.println("Unable to set SPI locale provider: " + e.getMessage()); 398 return null; 393 399 } 394 400 } catch (SecurityException e) { 395 401 // Don't call Logging class, it may not be fully initialized yet 396 402 System.err.println("Unable to set locale providers: " + e.getMessage()); 403 return null; 397 404 } 398 return System.setProperty("java.locale.providers", "JRE,CLDR");399 405 } 400 406 401 407 /** -
test/unit/org/openstreetmap/josm/TestUtils.java
573 573 * @return all JOSM subtypes of the given class 574 574 */ 575 575 public static <T> Set<Class<? extends T>> getJosmSubtypes(Class<T> superClass) { 576 try (ScanResult scan = new ClassGraph().whitelistPackages("org.openstreetmap.josm").ignoreClassVisibility().scan()) { 576 try (@SuppressWarnings("deprecation") 577 ScanResult scan = new ClassGraph().whitelistPackages("org.openstreetmap.josm").ignoreClassVisibility().scan()) { 577 578 Function<String, ClassInfoList> lambda = superClass.isInterface() ? scan::getClassesImplementing : scan::getSubclasses; 578 579 return lambda.apply(superClass.getName()) 579 580 .asMap().values().stream().map(x -> x.loadClass(superClass)).collect(Collectors.toSet());
