Skip to content

Commit 5268ee2

Browse files
committed
Change signature of GPX.write methods.
1 parent 37d9071 commit 5268ee2

File tree

1 file changed

+7
-7
lines changed
  • jpx/src/main/java/io/jenetics/jpx

1 file changed

+7
-7
lines changed

jpx/src/main/java/io/jenetics/jpx/GPX.java

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -610,7 +610,7 @@ static XMLReader<GPX> reader() {
610610
public static void write(final GPX gpx, final OutputStream output)
611611
throws IOException
612612
{
613-
write(gpx, null, output);
613+
write(gpx, output, null);
614614
}
615615

616616
/**
@@ -656,8 +656,8 @@ public static void write(final GPX gpx, final String path) throws IOException {
656656
*/
657657
public static void write(
658658
final GPX gpx,
659-
final String indent,
660-
final OutputStream output
659+
final OutputStream output,
660+
final String indent
661661
)
662662
throws IOException
663663
{
@@ -687,13 +687,13 @@ public static void write(
687687
* @throws IOException if the writing of the GPX object fails
688688
* @throws NullPointerException if one of the given arguments is {@code null}
689689
*/
690-
public static void write(final GPX gpx, final String indent, final Path path)
690+
public static void write(final GPX gpx, final Path path, final String indent)
691691
throws IOException
692692
{
693693
try (FileOutputStream out = new FileOutputStream(path.toFile());
694694
BufferedOutputStream bout = new BufferedOutputStream(out))
695695
{
696-
write(gpx, indent, bout);
696+
write(gpx, bout, indent);
697697
}
698698
}
699699

@@ -708,10 +708,10 @@ public static void write(final GPX gpx, final String indent, final Path path)
708708
* @throws IOException if the writing of the GPX object fails
709709
* @throws NullPointerException if one of the given arguments is {@code null}
710710
*/
711-
public static void write(final GPX gpx, final String indent, final String path)
711+
public static void write(final GPX gpx, final String path, final String indent)
712712
throws IOException
713713
{
714-
write(gpx, indent, Paths.get(path));
714+
write(gpx, Paths.get(path), indent);
715715
}
716716

717717
/**

0 commit comments

Comments
 (0)