From caf0512b09360f2e29329d1eba7933273b4a79c8 Mon Sep 17 00:00:00 2001
From: Teddy Wing
Date: Wed, 26 Apr 2023 00:14:22 +0200
Subject: Switch to Java 8
I had used Java 11 in order to use the `var` syntax, which seemed
pleasantly more concise, however, I discovered that the machine I want
to deploy this application to only has a Java 8 SDK, and I don't want to
bother messing with it and going on a potential yak shaving quest.
---
pom.xml | 4 ++--
src/main/java/com/teddywing/pdf_form_replace_font2/App.java | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/pom.xml b/pom.xml
index c60298c..982b75c 100644
--- a/pom.xml
+++ b/pom.xml
@@ -16,8 +16,8 @@
UTF-8
- 11
- 11
+ 1.8
+ 1.8
diff --git a/src/main/java/com/teddywing/pdf_form_replace_font2/App.java b/src/main/java/com/teddywing/pdf_form_replace_font2/App.java
index 24cf36e..9d4051a 100644
--- a/src/main/java/com/teddywing/pdf_form_replace_font2/App.java
+++ b/src/main/java/com/teddywing/pdf_form_replace_font2/App.java
@@ -131,7 +131,7 @@ public class App {
PdfAcroForm form = PdfAcroForm.getAcroForm(pdf, false);
Map fields = form.getFormFields();
- for (var entry : fields.entrySet()) {
+ for (Map.Entry entry : fields.entrySet()) {
PdfFormField field = entry.getValue();
PdfFont original_font = field.getFont();
--
cgit v1.2.3