Skip to content

Commit

Permalink
Remove var from code
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonScholz committed Oct 15, 2023
1 parent c07d9a6 commit 7c5595a
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
import io.github.simonscholz.qrcode.types.VEvent;

import javax.imageio.ImageIO;
import java.awt.image.BufferedImage;
import java.io.File;
import java.io.IOException;
import java.nio.file.Files;
Expand All @@ -26,7 +27,7 @@ public static void main(final String[] args) throws IOException {
final QrCodeApi qrCodeApi = QrCodeFactory.createQrCodeApi();
final Path path = Paths.get(System.getProperty("user.home"), "qr-code-samples");
Files.createDirectories(path);
final var qrCodeDir = path.toAbsolutePath().toString();
final String qrCodeDir = path.toAbsolutePath().toString();

generateSamples(qrCodeApi, qrCodeDir);
}
Expand Down Expand Up @@ -92,7 +93,7 @@ private static void createWithVCard(final QrCodeApi qrCodeApi, final String qrCo
}

private static void createDefaultQrCode(final QrCodeApi qrCodeApi, final String qrCodeText, final File qrCodeFile) throws IOException {
final var qrCode = qrCodeApi.createQrCodeImage(new QrCodeConfig(qrCodeText, DEFAULT_IMG_SIZE));
final BufferedImage qrCode = qrCodeApi.createQrCodeImage(new QrCodeConfig(qrCodeText, DEFAULT_IMG_SIZE));
ImageIO.write(qrCode, "png", qrCodeFile);
}
}

0 comments on commit 7c5595a

Please sign in to comment.