Skip to content

Commit bad6872

Browse files
authored
Merge pull request #181 from andrew-guerra/patch-2
Refactor references to deprecated GPX.write in README
2 parents 540e603 + 19135a5 commit bad6872

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ final GPX gpx = GPX.builder()
4747
**Writing GPX object to a file**
4848

4949
```java
50-
GPX.write(gpx, "track.gpx");
50+
GPX.write(gpx, Path.of("track.gpx"));
5151
```
5252

5353
*GPX output*
@@ -75,7 +75,7 @@ GPX.write(gpx, "track.gpx");
7575
This example writes a given `GPX` object to a file, reads it again and prints the `WayPoint`s of all tracks and all track-segments to the console.
7676

7777
```java
78-
GPX.write(gpx, "track.gpx");
78+
GPX.write(gpx, Path.of("track.gpx"));
7979
GPX.read("gpx.xml").tracks()
8080
.flatMap(Track::segments)
8181
.flatMap(TrackSegment::points)
@@ -145,7 +145,7 @@ final GPX gpx11 = gpx10.toBuilder()
145145
.build();
146146

147147
// Writing GPX to file.
148-
GPX.write(gpx11, "track-v11.gpx");
148+
GPX.write(gpx11, Path.of("track-v11.gpx"));
149149
```
150150

151151
### ISO 6709 location strings

0 commit comments

Comments
 (0)