summaryrefslogtreecommitdiff
path: root/pdf-over-gui
diff options
context:
space:
mode:
authorJakob Heher <jakob.heher@iaik.tugraz.at>2022-02-15 17:15:33 +0100
committerJakob Heher <jakob.heher@iaik.tugraz.at>2022-02-15 17:15:33 +0100
commitb00827d740f4425c1fb4702515d4d2b23e90fc35 (patch)
treed6bf4a6aa2d3d6e11bce501c7af22885b7c208c7 /pdf-over-gui
parent4a01104b57b18dc792c7fb77371e6f91af94438f (diff)
downloadpdf-over-b00827d740f4425c1fb4702515d4d2b23e90fc35.tar.gz
pdf-over-b00827d740f4425c1fb4702515d4d2b23e90fc35.tar.bz2
pdf-over-b00827d740f4425c1fb4702515d4d2b23e90fc35.zip
more small refactors
Diffstat (limited to 'pdf-over-gui')
-rw-r--r--pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow/config/ConfigProviderImpl.java12
-rw-r--r--pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow/config/ConfigurationContainer.java1
-rw-r--r--pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow/states/OpenState.java1
3 files changed, 7 insertions, 7 deletions
diff --git a/pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow/config/ConfigProviderImpl.java b/pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow/config/ConfigProviderImpl.java
index ec7c0c60..952bd137 100644
--- a/pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow/config/ConfigProviderImpl.java
+++ b/pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow/config/ConfigProviderImpl.java
@@ -1331,9 +1331,9 @@ public class ConfigProviderImpl implements ConfigProvider, ConfigManipulator,
@Override
public String getKeyStoreStorePass() {
String storePass = this.configurationOverlay.getKeyStoreStorePass();
- if (storePass == null)
- storePass = getKeyStoreStorePassPersistent();
- return storePass;
+ if (storePass != null)
+ return storePass;
+ return getKeyStoreStorePassPersistent();
}
/* (non-Javadoc)
@@ -1377,9 +1377,9 @@ public class ConfigProviderImpl implements ConfigProvider, ConfigManipulator,
@Override
public String getKeyStoreKeyPass() {
String keyPass = this.configurationOverlay.getKeyStoreKeyPass();
- if (keyPass == null)
- keyPass = getKeyStoreKeyPassPersistent();
- return keyPass;
+ if (keyPass != null)
+ return keyPass;
+ return getKeyStoreKeyPassPersistent();
}
/* (non-Javadoc)
diff --git a/pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow/config/ConfigurationContainer.java b/pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow/config/ConfigurationContainer.java
index 4c634fd6..14383913 100644
--- a/pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow/config/ConfigurationContainer.java
+++ b/pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow/config/ConfigurationContainer.java
@@ -303,6 +303,7 @@ public interface ConfigurationContainer {
* @param alias the keystore alias
*/
public void setKeyStoreAlias(String alias);
+
/**
* Gets the keystore store password
* @return the keystore store password
diff --git a/pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow/states/OpenState.java b/pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow/states/OpenState.java
index 9c2dc847..86d93daa 100644
--- a/pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow/states/OpenState.java
+++ b/pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow/states/OpenState.java
@@ -210,7 +210,6 @@ public class OpenState extends State {
@SuppressWarnings("static-method")
private void addPlaceholderSelectionToConfig(String selection) {
try {
- FileInputStream in = new FileInputStream(advancedConfig);
PropertiesConfiguration config = new PropertiesConfiguration();
PropertiesConfigurationLayout layout = new PropertiesConfigurationLayout(config);
layout.load(new InputStreamReader(new FileInputStream(advancedConfig)));