Changeset 10850 in josm
- Timestamp:
- 2016-08-19T01:16:51+02:00 (8 years ago)
- Location:
- trunk
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/.classpath
r10833 r10850 2 2 <classpath> 3 3 <classpathentry excluding="org/apache/commons/compress/compressors/CompressorStreamFactory.java|org/apache/commons/compress/compressors/deflate/|org/apache/commons/compress/compressors/gzip/|org/apache/commons/compress/compressors/lzma/|org/apache/commons/compress/compressors/lzw/|org/apache/commons/compress/compressors/pack200/|org/apache/commons/compress/compressors/snappy/|org/apache/commons/compress/compressors/xz/|org/apache/commons/compress/compressors/z/|org/apache/commons/jcs/auxiliary/disk/jdbc/|org/apache/commons/jcs/utils/servlet/|org/apache/commons/logging/impl/AvalonLogger.java|org/apache/commons/logging/impl/Log4JLogger.java|org/apache/commons/logging/impl/LogKitLogger.java|org/apache/commons/logging/impl/ServletContextCleaner.java|org/apache/commons/jcs/admin/servlet/|org/apache/commons/jcs/auxiliary/remote/http/|org/apache/commons/jcs/auxiliary/remote/AbstractRemoteAuxiliaryCache.java|org/apache/commons/jcs/auxiliary/remote/AbstractRemoteCacheListener.java|org/apache/commons/jcs/auxiliary/remote/RemoteCache.java|org/apache/commons/jcs/auxiliary/remote/RemoteCacheFactory.java|org/apache/commons/jcs/auxiliary/remote/RemoteCacheNoWaitFacade.java|org/apache/commons/jcs/auxiliary/remote/AbstractRemoteCacheNoWaitFacade.java|org/apache/commons/jcs/auxiliary/remote/RemoteCacheFailoverRunner.java|org/apache/commons/jcs/auxiliary/remote/RemoteCacheListener.java|org/apache/commons/jcs/auxiliary/remote/RemoteCacheManager.java|org/apache/commons/jcs/auxiliary/remote/RemoteCacheMonitor.java|org/apache/commons/jcs/auxiliary/remote/RemoteCacheNoWait.java|org/apache/commons/jcs/auxiliary/remote/RemoteCacheRestore.java|org/apache/commons/jcs/auxiliary/remote/server/RemoteCacheStartupServlet.java|org/apache/commons/jcs/auxiliary/remote/server/TimeoutConfigurableRMISocketFactory.java|org/apache/commons/logging/impl/Jdk13LumberjackLogger.java|org/apache/commons/compress/compressors/bzip2/BZip2Utils.java|org/apache/commons/compress/compressors/CompressorException.java|org/apache/commons/compress/compressors/FileNameUtil.java|org/apache/commons/jcs/auxiliary/lateral/socket/tcp/|org/apache/commons/jcs/auxiliary/lateral/LateralCache.java|org/apache/commons/jcs/auxiliary/lateral/LateralCacheAttributes.java|org/apache/commons/jcs/auxiliary/lateral/LateralCacheMonitor.java|org/apache/commons/jcs/auxiliary/lateral/LateralCacheNoWait.java|org/apache/commons/jcs/auxiliary/lateral/LateralCacheNoWaitFacade.java|org/apache/commons/jcs/auxiliary/lateral/LateralCommand.java|org/apache/commons/jcs/auxiliary/lateral/LateralElementDescriptor.java|org/apache/commons/jcs/engine/ZombieCacheService.java|org/apache/commons/jcs/engine/ZombieCacheServiceNonLocal.java|org/apache/commons/jcs/engine/ZombieCacheWatch.java|org/apache/commons/jcs/utils/discovery/|org/apache/commons/jcs/utils/net/|org/apache/commons/jcs/utils/access/|org/apache/commons/jcs/JCS.java|org/apache/commons/jcs/access/PartitionedCacheAccess.java|org/apache/commons/jcs/utils/props/" kind="src" path="src"/> 4 <classpathentry including="data/|images/|resources/|styles/" kind="src" path=""/> 4 5 <classpathentry kind="src" path="test/unit"/> 5 6 <classpathentry kind="src" path="test/functional"/> 6 7 <classpathentry kind="src" path="test/performance"/> 7 <classpathentry kind="src" output="bin2/data" path="data"/> 8 <classpathentry kind="src" output="bin2/images" path="images"/> 9 <classpathentry kind="src" output="bin2/styles" path="styles"/> 10 <classpathentry kind="src" output="bin2/resources" path="resources"/> 11 <classpathentry kind="src" output="bin2/scripts" path="scripts"/> 8 <classpathentry kind="src" path="scripts"/> 12 9 <classpathentry kind="con" path="org.eclipse.jdt.junit.JUNIT_CONTAINER/4"/> 13 10 <classpathentry kind="lib" path="test/lib/fest/fest-assert-1.0.jar"/> -
trunk/.externalToolBuilders/revision.launch
r2453 r10850 1 1 <?xml version="1.0" encoding="UTF-8" standalone="no"?> 2 2 <launchConfiguration type="org.eclipse.ant.AntBuilderLaunchConfigurationType"> 3 <stringAttribute key="org.eclipse.ant.ui.ATTR_ANT_AFTER_CLEAN_TARGETS" value="create-revision-eclipse, "/>4 <stringAttribute key="org.eclipse.ant.ui.ATTR_ANT_MANUAL_TARGETS" value="create-revision-eclipse, "/>3 <stringAttribute key="org.eclipse.ant.ui.ATTR_ANT_AFTER_CLEAN_TARGETS" value="create-revision-eclipse,epsg"/> 4 <stringAttribute key="org.eclipse.ant.ui.ATTR_ANT_MANUAL_TARGETS" value="create-revision-eclipse,epsg"/> 5 5 <booleanAttribute key="org.eclipse.ant.ui.ATTR_TARGETS_UPDATED" value="true"/> 6 6 <booleanAttribute key="org.eclipse.ant.ui.DEFAULT_VM_INSTALL" value="false"/> … … 11 11 <booleanAttribute key="org.eclipse.jdt.launching.DEFAULT_CLASSPATH" value="true"/> 12 12 <stringAttribute key="org.eclipse.jdt.launching.PROJECT_ATTR" value=""/> 13 <mapAttribute key="org.eclipse.ui.externaltools.ATTR_ANT_PROPERTIES"> 14 <mapEntry key="build.dir" value="${build_project}/bin"/> 15 <mapEntry key="eclipse.running" value="true"/> 16 </mapAttribute> 13 17 <booleanAttribute key="org.eclipse.ui.externaltools.ATTR_BUILDER_ENABLED" value="true"/> 14 18 <stringAttribute key="org.eclipse.ui.externaltools.ATTR_LOCATION" value="${build_project}/build.xml"/> -
trunk/.project
r8935 r10850 32 32 </buildCommand> 33 33 <buildCommand> 34 <name>edu.umd.cs.findbugs.plugin.eclipse.findbugsBuilder</name>35 <arguments>36 </arguments>37 </buildCommand>38 <buildCommand>39 34 <name>org.sonarlint.eclipse.core.sonarlintBuilder</name> 40 35 <arguments> … … 49 44 <nature>sf.eclipse.javacc.javaccnature</nature> 50 45 <nature>net.sf.eclipsecs.core.CheckstyleNature</nature> 51 <nature>edu.umd.cs.findbugs.plugin.eclipse.findbugsNature</nature>52 46 </natures> 53 47 </projectDescription> -
trunk/.settings/edu.umd.cs.findbugs.core.prefs
r10223 r10850 1 1 #FindBugs User Preferences 2 # Mon May 16 03:41:36CEST 20162 #Fri Aug 19 00:50:13 CEST 2016 3 3 cloud_id=edu.umd.cs.findbugs.cloud.doNothingCloud 4 4 detectorAppendingToAnObjectOutputStream=AppendingToAnObjectOutputStream|true 5 5 detectorAtomicityProblem=AtomicityProblem|true 6 6 detectorBadAppletConstructor=BadAppletConstructor|false 7 detectorBadHexadecimalConversionDetector=BadHexadecimalConversionDetector|true 7 8 detectorBadResultSetAccess=BadResultSetAccess|true 8 9 detectorBadSyntaxForRegularExpression=BadSyntaxForRegularExpression|true … … 10 11 detectorBadlyOverriddenAdapter=BadlyOverriddenAdapter|true 11 12 detectorBooleanReturnNull=BooleanReturnNull|true 13 detectorBroadcastDetector=BroadcastDetector|true 12 14 detectorCallToUnsupportedMethod=CallToUnsupportedMethod|true 13 15 detectorCheckExpectedWarnings=CheckExpectedWarnings|false … … 15 17 detectorCheckRelaxingNullnessAnnotation=CheckRelaxingNullnessAnnotation|true 16 18 detectorCheckTypeQualifiers=CheckTypeQualifiers|true 19 detectorCipherWithNoIntegrityDetector=CipherWithNoIntegrityDetector|true 17 20 detectorCloneIdiom=CloneIdiom|true 21 detectorCommandInjectionDetector=CommandInjectionDetector|true 18 22 detectorComparatorIdiom=ComparatorIdiom|true 19 23 detectorConfusedInheritance=ConfusedInheritance|true 20 24 detectorConfusionBetweenInheritedAndOuterMethod=ConfusionBetweenInheritedAndOuterMethod|true 25 detectorConstantPasswordDetector=ConstantPasswordDetector|true 26 detectorCookieFlagsDetector=CookieFlagsDetector|true 27 detectorCookieReadDetector=CookieReadDetector|true 21 28 detectorCovariantArrayAssignment=CovariantArrayAssignment|true 29 detectorCrlfLogInjectionDetector=CrlfLogInjectionDetector|true 22 30 detectorCrossSiteScripting=CrossSiteScripting|true 31 detectorCustomInjectionDetector=CustomInjectionDetector|true 32 detectorCustomMessageDigestDetector=CustomMessageDigestDetector|true 23 33 detectorDefaultEncodingDetector=DefaultEncodingDetector|true 34 detectorDesUsageDetector=DesUsageDetector|true 35 detectorDeserializationGadgetDetector=DeserializationGadgetDetector|true 24 36 detectorDoInsideDoPrivileged=DoInsideDoPrivileged|true 25 37 detectorDontCatchIllegalMonitorStateException=DontCatchIllegalMonitorStateException|true … … 32 44 detectorEmptyZipFileEntry=EmptyZipFileEntry|true 33 45 detectorEqualsOperandShouldHaveClassCompatibleWithThis=EqualsOperandShouldHaveClassCompatibleWithThis|true 46 detectorEsapiEncryptorDetector=EsapiEncryptorDetector|true 34 47 detectorExplicitSerialization=ExplicitSerialization|true 48 detectorExternalConfigurationControlDetector=ExternalConfigurationControlDetector|true 49 detectorExternalFileAccessDetector=ExternalFileAccessDetector|true 50 detectorFileUploadFilenameDetector=FileUploadFilenameDetector|true 35 51 detectorFinalizerNullsFields=FinalizerNullsFields|true 36 52 detectorFindBadCast2=FindBadCast2|true … … 77 93 detectorFindUselessObjects=FindUselessObjects|true 78 94 detectorFormatStringChecker=FormatStringChecker|true 95 detectorGeolocationDetector=GeolocationDetector|true 96 detectorGoogleApiKeyDetector=GoogleApiKeyDetector|true 97 detectorHazelcastSymmetricEncryptionDetector=HazelcastSymmetricEncryptionDetector|true 98 detectorHttpResponseSplittingDetector=HttpResponseSplittingDetector|true 79 99 detectorHugeSharedStringConstants=HugeSharedStringConstants|true 80 100 detectorIDivResultCastToDouble=IDivResultCastToDouble|true … … 91 111 detectorInitializeNonnullFieldsInConstructor=InitializeNonnullFieldsInConstructor|true 92 112 detectorInstantiateStaticClass=InstantiateStaticClass|true 113 detectorInsufficientKeySizeBlowfishDetector=InsufficientKeySizeBlowfishDetector|true 114 detectorInsufficientKeySizeRsaDetector=InsufficientKeySizeRsaDetector|true 93 115 detectorIntCast2LongAsInstant=IntCast2LongAsInstant|true 94 116 detectorInvalidJUnitTest=InvalidJUnitTest|true 95 117 detectorIteratorIdioms=IteratorIdioms|true 118 detectorJaxRsEndpointDetector=JaxRsEndpointDetector|true 119 detectorJaxWsEndpointDetector=JaxWsEndpointDetector|true 120 detectorJndiCredentialsDetector=JndiCredentialsDetector|true 121 detectorJspIncludeDetector=JspIncludeDetector|true 122 detectorJspSpringEvalDetector=JspSpringEvalDetector|true 123 detectorJstlOutDetector=JstlOutDetector|true 96 124 detectorLazyInit=LazyInit|true 125 detectorLdapInjectionDetector=LdapInjectionDetector|true 97 126 detectorLoadOfKnownNullValue=LoadOfKnownNullValue|true 98 127 detectorLostLoggerDueToWeakReference=LostLoggerDueToWeakReference|true … … 104 133 detectorNaming=Naming|true 105 134 detectorNoteUnconditionalParamDerefs=NoteUnconditionalParamDerefs|true 135 detectorNullCipherDetector=NullCipherDetector|true 106 136 detectorNumberConstructor=NumberConstructor|true 137 detectorObjectDeserializationDetector=ObjectDeserializationDetector|true 107 138 detectorOptionalReturnNull=OptionalReturnNull|true 108 139 detectorOverridingEqualsNotSymmetrical=OverridingEqualsNotSymmetrical|true 140 detectorPathTraversalDetector=PathTraversalDetector|true 141 detectorPlayUnvalidatedRedirectDetector=PlayUnvalidatedRedirectDetector|true 142 detectorPredictableRandomDetector=PredictableRandomDetector|true 109 143 detectorPreferZeroLengthArrays=PreferZeroLengthArrays|true 110 144 detectorPublicSemaphores=PublicSemaphores|true 111 145 detectorQuestionableBooleanAssignment=QuestionableBooleanAssignment|true 146 detectorReDosDetector=ReDosDetector|true 112 147 detectorReadOfInstanceFieldInMethodInvokedByConstructorInSuperclass=ReadOfInstanceFieldInMethodInvokedByConstructorInSuperclass|true 113 148 detectorReadReturnShouldBeChecked=ReadReturnShouldBeChecked|true … … 115 150 detectorRedundantInterfaces=RedundantInterfaces|true 116 151 detectorRepeatedConditionals=RepeatedConditionals|true 152 detectorRsaNoPaddingDetector=RsaNoPaddingDetector|true 117 153 detectorRuntimeExceptionCapture=RuntimeExceptionCapture|true 154 detectorScriptInjectionDetector=ScriptInjectionDetector|true 118 155 detectorSerializableIdiom=SerializableIdiom|true 156 detectorServletEndpointDetector=ServletEndpointDetector|true 157 detectorSpringMvcEndpointDetector=SpringMvcEndpointDetector|true 158 detectorSqlInjectionDetector=SqlInjectionDetector|true 159 detectorSslDisablerDetector=SslDisablerDetector|true 119 160 detectorStartInConstructor=StartInConstructor|true 120 161 detectorStaticCalendarDetector=StaticCalendarDetector|true 162 detectorStaticIvDetector=StaticIvDetector|true 163 detectorStdXmlTransformDetector=StdXmlTransformDetector|true 121 164 detectorStringConcatenation=StringConcatenation|true 165 detectorStruts1EndpointDetector=Struts1EndpointDetector|true 166 detectorStruts2EndpointDetector=Struts2EndpointDetector|true 167 detectorStrutsValidatorFormDetector=StrutsValidatorFormDetector|true 122 168 detectorSuperfluousInstanceOf=SuperfluousInstanceOf|true 123 169 detectorSuspiciousThreadInterrupted=SuspiciousThreadInterrupted|true … … 127 173 detectorSynchronizeOnClassLiteralNotGetClass=SynchronizeOnClassLiteralNotGetClass|true 128 174 detectorSynchronizingOnContentsOfFieldToProtectField=SynchronizingOnContentsOfFieldToProtectField|true 175 detectorTapestryEndpointDetector=TapestryEndpointDetector|true 176 detectorTrustBoundaryViolationDetector=TrustBoundaryViolationDetector|true 129 177 detectorURLProblems=URLProblems|true 130 178 detectorUncallableMethodOfAnonymousClass=UncallableMethodOfAnonymousClass|true 179 detectorUnencryptedSocketDetector=UnencryptedSocketDetector|true 131 180 detectorUnnecessaryMath=UnnecessaryMath|true 132 181 detectorUnreadFields=UnreadFields|true 182 detectorUnvalidatedRedirectDetector=UnvalidatedRedirectDetector|true 133 183 detectorUselessSubclassMethod=UselessSubclassMethod|true 134 184 detectorVarArgsProblems=VarArgsProblems|true 135 185 detectorVolatileUsage=VolatileUsage|true 136 186 detectorWaitInLoop=WaitInLoop|true 187 detectorWeakFilenameUtilsMethodDetector=WeakFilenameUtilsMethodDetector|true 188 detectorWeakMessageDigestDetector=WeakMessageDigestDetector|true 189 detectorWeakTrustManagerDetector=WeakTrustManagerDetector|true 190 detectorWebViewJavascriptEnabledDetector=WebViewJavascriptEnabledDetector|true 191 detectorWebViewJavascriptInterfaceDetector=WebViewJavascriptInterfaceDetector|true 192 detectorWicketEndpointDetector=WicketEndpointDetector|true 193 detectorWorldWritableDetector=WorldWritableDetector|true 137 194 detectorWrongMapIterator=WrongMapIterator|true 138 195 detectorXMLFactoryBypass=XMLFactoryBypass|true 196 detectorXPathInjectionDetector=XPathInjectionDetector|true 197 detectorXSSRequestWrapperDetector=XSSRequestWrapperDetector|true 198 detectorXmlDecoderDetector=XmlDecoderDetector|true 199 detectorXslTransformJspDetector=XslTransformJspDetector|true 200 detectorXssJspDetector=XssJspDetector|true 201 detectorXssServletDetector=XssServletDetector|true 202 detectorXxeDetector=XxeDetector|true 139 203 detector_threshold=3 140 204 effort=max -
trunk/.settings/sf.eclipse.javacc.prefs
r10580 r10850 1 1 CLEAR_CONSOLE=true 2 FORMAT_BEFORE_SAVE=false 2 3 JAVACC_OPTIONS=-JDK_VERSION\=1.8 -GRAMMAR_ENCODING\=UTF-8 3 4 JJDOC_OPTIONS= -
trunk/build.xml
r10845 r10850 364 364 <delete file="${test.dir}/jacoco.exec" /> 365 365 <delete file="${test.dir}/jacocoIT.exec" /> 366 <delete file="${test.dir}/config/unit-josm.home/preferences.xml" /> 367 <delete file="${test.dir}/config/functional-josm.home/preferences.xml" /> 368 <delete file="${test.dir}/config/performance-josm.home/preferences.xml" /> 369 <delete dir="${test.dir}/config/unit-josm.home/cache" failonerror="false"/> 370 <delete dir="${test.dir}/config/functional-josm.home/cache" failonerror="false"/> 371 <delete dir="${test.dir}/config/performance-josm.home/cache" failonerror="false"/> 366 <delete file="${test.dir}/config/unit-josm.home" failonerror="false"/> 367 <delete file="${test.dir}/config/functional-josm.home" failonerror="false"/> 368 <delete file="${test.dir}/config/performance-josm.home" failonerror="false"/> 372 369 </target> 373 370 <macrodef name="call-groovyc"> … … 738 735 ** Compile build script for generating projection list. 739 736 --> 740 <target name="epsg-compile" >737 <target name="epsg-compile" depends="init-properties"> 741 738 <property name="proj-classpath" location="${build.dir}"/> 742 739 <mkdir dir="${proj-build.dir}"/> -
trunk/test/unit/org/openstreetmap/josm/JOSMFixture.java
r10510 r10850 101 101 Main.logLevel = 3; 102 102 Main.pref.init(false); 103 String url = Main.pref.get("osm-server.url"); 104 if (url == null || url.isEmpty() || isProductionApiUrl(url)) { 105 Main.pref.put("osm-server.url", "http://api06.dev.openstreetmap.org/api"); 106 } 103 107 I18n.set(Main.pref.get("language", "en")); 104 108 … … 113 117 114 118 // make sure we don't upload to or test against production 115 // 116 String url = OsmApi.getOsmApi().getBaseUrl().toLowerCase(Locale.ENGLISH).trim(); 117 if (url.startsWith("http://www.openstreetmap.org") || url.startsWith("http://api.openstreetmap.org") 118 || url.startsWith("https://www.openstreetmap.org") || url.startsWith("https://api.openstreetmap.org")) { 119 url = OsmApi.getOsmApi().getBaseUrl().toLowerCase(Locale.ENGLISH).trim(); 120 if (isProductionApiUrl(url)) { 119 121 fail(MessageFormat.format("configured server url ''{0}'' seems to be a productive url, aborting.", url)); 120 122 } … … 128 130 }); 129 131 } 132 } 133 134 private static boolean isProductionApiUrl(String url) { 135 return url.startsWith("http://www.openstreetmap.org") || url.startsWith("http://api.openstreetmap.org") 136 || url.startsWith("https://www.openstreetmap.org") || url.startsWith("https://api.openstreetmap.org"); 130 137 } 131 138
Note:
See TracChangeset
for help on using the changeset viewer.