diff options
author | Jakob Heher <jakob.heher@iaik.tugraz.at> | 2022-07-07 15:22:24 +0200 |
---|---|---|
committer | Jakob Heher <jakob.heher@iaik.tugraz.at> | 2022-07-07 15:22:24 +0200 |
commit | e568e0adf216569b5a0baed85d2d5e09b5d5d7f8 (patch) | |
tree | b6f1f414c3ae02ebbb4112e57a7fc68d2efdbe3e | |
parent | 0f63732ed31a3b5189e46f8b49c32a79ef2b6534 (diff) | |
download | pdf-over-e568e0adf216569b5a0baed85d2d5e09b5d5d7f8.tar.gz pdf-over-e568e0adf216569b5a0baed85d2d5e09b5d5d7f8.tar.bz2 pdf-over-e568e0adf216569b5a0baed85d2d5e09b5d5d7f8.zip |
deprecation cleanup
3 files changed, 3 insertions, 5 deletions
diff --git a/pdf-over-gui/src/main/java/at/asit/pdfover/gui/cliarguments/ArgumentHandler.java b/pdf-over-gui/src/main/java/at/asit/pdfover/gui/cliarguments/ArgumentHandler.java index 42ddfec7..22fb3409 100644 --- a/pdf-over-gui/src/main/java/at/asit/pdfover/gui/cliarguments/ArgumentHandler.java +++ b/pdf-over-gui/src/main/java/at/asit/pdfover/gui/cliarguments/ArgumentHandler.java @@ -70,7 +70,7 @@ public class ArgumentHandler { Argument arg; try { - arg = cliArgument.newInstance(); + arg = cliArgument.getDeclaredConstructor().newInstance(); arg.setStateMachine(this.stateMachine); diff --git a/pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow/config/ConfigurationDataInMemory.java b/pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow/config/ConfigurationDataInMemory.java index c59da748..382cc744 100644 --- a/pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow/config/ConfigurationDataInMemory.java +++ b/pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow/config/ConfigurationDataInMemory.java @@ -182,9 +182,8 @@ public class ConfigurationDataInMemory { /** The Signature Profile */ protected Profile signatureProfile = null; public Profile getSignatureProfile() { - if (this.signatureProfile == null) { - this.signatureProfile = Profile.SIGNATURBLOCK_SMALL; - } + if (this.signatureProfile == null) + return Profile.SIGNATURBLOCK_SMALL; return this.signatureProfile; } public void setSignatureProfile(Profile profile) { this.signatureProfile = profile; } diff --git a/pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow/config/ConfigurationManager.java b/pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow/config/ConfigurationManager.java index 7823ca41..414f89de 100644 --- a/pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow/config/ConfigurationManager.java +++ b/pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow/config/ConfigurationManager.java @@ -406,7 +406,6 @@ public class ConfigurationManager { log.info("Configuration file saved to " + configFile.getAbsolutePath()); } - // TODO review this public void setConfigurationFileName(String configurationFile) { if (this.configurationFile.equals(configurationFile)) |