From d3c2137525006eddf1fdde80b1db58c6ea5210f2 Mon Sep 17 00:00:00 2001 From: Leonard Ehrenfried Date: Tue, 24 Sep 2024 08:47:00 +0200 Subject: [PATCH] Use Java 17 style --- .../org/onebusaway/gtfs_transformer/GtfsTransformerMain.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/onebusaway-gtfs-transformer-cli/src/main/java/org/onebusaway/gtfs_transformer/GtfsTransformerMain.java b/onebusaway-gtfs-transformer-cli/src/main/java/org/onebusaway/gtfs_transformer/GtfsTransformerMain.java index 673cc20e..a1e10793 100644 --- a/onebusaway-gtfs-transformer-cli/src/main/java/org/onebusaway/gtfs_transformer/GtfsTransformerMain.java +++ b/onebusaway-gtfs-transformer-cli/src/main/java/org/onebusaway/gtfs_transformer/GtfsTransformerMain.java @@ -202,7 +202,7 @@ protected void runApplication(CommandLine cli, String[] originalArgs) GtfsTransformer transformer = new GtfsTransformer(); transformer.setGtfsInputDirectories(inputPaths); - var outputPath = new File(args.getLast()); + var outputPath = new File(args.get(args.size() - 1)); transformer.setOutputDirectory(outputPath); LOG.info("output path: {}", outputPath);