diff options
Diffstat (limited to 'pdf-over-gui')
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)) |