Changeset 19502 in josm
- Timestamp:
- 2026-02-10T23:29:03+01:00 (38 hours ago)
- Location:
- trunk
- Files:
-
- 4 edited
-
ivy.xml (modified) (1 diff)
-
nodist/pom.xml (modified) (7 diffs)
-
src/org/openstreetmap/josm/data/gpx/GpxTrack.java (modified) (2 diffs)
-
test/unit/org/openstreetmap/josm/data/gpx/GpxDataTest.java (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ivy.xml
r19501 r19502 41 41 <dependency conf="sources->sources" org="org.eclipse.parsson" name="parsson" rev="1.1.7"/> 42 42 <dependency conf="sources->sources" org="org.apache.commons" name="commons-jcs3-core" rev="3.2.1"/> 43 <dependency conf="sources->sources" org="org.apache.commons" name="commons-compress" rev="1.2 7.1"/>43 <dependency conf="sources->sources" org="org.apache.commons" name="commons-compress" rev="1.28.0"/> 44 44 <dependency conf="sources->sources" org="jakarta.annotation" name="jakarta.annotation-api" rev="2.1.1" /> 45 <dependency conf="sources->sources" org="org.tukaani" name="xz" rev="1.1 0"/>45 <dependency conf="sources->sources" org="org.tukaani" name="xz" rev="1.11"/> 46 46 <dependency conf="sources->sources" org="com.adobe.xmp" name="xmpcore" rev="6.1.11"/> 47 47 <dependency conf="sources->sources" org="com.drewnoakes" name="metadata-extractor" rev="2.19.0" transitive="false"/> 48 48 <dependency conf="sources->sources" org="com.formdev" name="svgSalamander" rev="1.1.4"/> 49 <dependency conf="sources->sources" org="ch.poole" name="OpeningHoursParser" rev="0.2 8.2"/>49 <dependency conf="sources->sources" org="ch.poole" name="OpeningHoursParser" rev="0.29.0"/> 50 50 <dependency conf="sources->default" org="org.webjars.npm" name="tag2link" rev="2025.11.21"/><!-- sources->default sic! (tag2link-sources.jar is empty, see #19335) --> 51 51 <!-- commonslang->default --> -
trunk/nodist/pom.xml
r19448 r19502 254 254 <groupId>org.junit</groupId> 255 255 <artifactId>junit-bom</artifactId> 256 <version>5.1 1.4</version>256 <version>5.14.2</version> 257 257 <type>pom</type> 258 258 <scope>import</scope> … … 285 285 <groupId>org.apache.commons</groupId> 286 286 <artifactId>commons-compress</artifactId> 287 <version>1.2 7.1</version>287 <version>1.28.0</version> 288 288 <scope>provided</scope> 289 289 </dependency> … … 297 297 <groupId>org.tukaani</groupId> 298 298 <artifactId>xz</artifactId> 299 <version>1.1 0</version>299 <version>1.11</version> 300 300 <scope>provided</scope> 301 301 </dependency> … … 321 321 <groupId>ch.poole</groupId> 322 322 <artifactId>OpeningHoursParser</artifactId> 323 <version>0.2 8.2</version>323 <version>0.29.0</version> 324 324 <scope>provided</scope> 325 325 </dependency> … … 352 352 <groupId>org.wiremock</groupId> 353 353 <artifactId>wiremock</artifactId> 354 <version>3.1 0.0</version>354 <version>3.13.2</version> 355 355 <scope>test</scope> 356 356 </dependency> … … 358 358 <groupId>io.github.classgraph</groupId> 359 359 <artifactId>classgraph</artifactId> 360 <version>4.8.1 79</version>360 <version>4.8.184</version> 361 361 <scope>test</scope> 362 362 </dependency> … … 382 382 <groupId>org.awaitility</groupId> 383 383 <artifactId>awaitility</artifactId> 384 <version>4. 2.2</version>384 <version>4.3.0</version> 385 385 <scope>test</scope> 386 386 </dependency> -
trunk/src/org/openstreetmap/josm/data/gpx/GpxTrack.java
r18399 r19502 211 211 @Override 212 212 public int hashCode() { 213 return 31 * super.hashCode() + ((segments == null) ? 0 : segments.hashCode()); 213 return 31 * super.hashCode() + ((segments == null) ? 0 : segments.hashCode()) 214 + ((attr == null) ? 0 : attr.hashCode()); 214 215 } 215 216 … … 230 231 } else if (!segments.equals(other.segments)) 231 232 return false; 233 if (attr == null) { 234 if (other.attr != null) 235 return false; 236 } else if (!attr.equals(other.attr)) 237 return false; 232 238 return true; 233 239 } -
trunk/test/unit/org/openstreetmap/josm/data/gpx/GpxDataTest.java
r19050 r19502 16 16 import java.util.Collections; 17 17 import java.util.List; 18 import java.util.HashMap; 19 import java.util.Map; 18 20 import java.util.stream.Collectors; 19 21 import java.util.stream.Stream; … … 494 496 GpxExtensionCollection col = new GpxExtensionCollection(); 495 497 col.add("josm", "from-server", "true"); 498 Collection<Collection<WayPoint>> trackSegs1 = new ArrayList<Collection<WayPoint>>(); 499 Collection<Collection<WayPoint>> trackSegs2 = new ArrayList<Collection<WayPoint>>(); 500 Collection<WayPoint> wps = new ArrayList<WayPoint>(); 501 wps.add(new WayPoint(LatLon.SOUTH_POLE)); 502 trackSegs2.add(wps); 503 Map<String, Object> attributes1 = new HashMap<String, Object>(); 504 Map<String, Object> attributes2 = new HashMap<String, Object>(); 505 attributes2.put("test", "test"); 496 506 EqualsVerifier.forClass(GpxData.class).usingGetClass() 497 507 .suppress(Warning.NONFINAL_FIELDS) … … 501 511 .withPrefabValues(ListenerList.class, ListenerList.create(), ListenerList.create()) 502 512 .withPrefabValues(GpxExtensionCollection.class, new GpxExtensionCollection(), col) 513 .withPrefabValues(IGpxTrack.class, new GpxTrack(trackSegs1, attributes1), new GpxTrack(trackSegs2, attributes2)) 503 514 .verify(); 504 515 }
Note:
See TracChangeset
for help on using the changeset viewer.
