diff options
author | tkellner <tkellner@174cde9d-5d70-4d2a-aa98-46368bc2aaf7> | 2013-04-10 19:26:55 +0000 |
---|---|---|
committer | tkellner <tkellner@174cde9d-5d70-4d2a-aa98-46368bc2aaf7> | 2013-04-10 19:26:55 +0000 |
commit | 5b2342a9e89b6a92f13ba24ad28a47c2d613ee5e (patch) | |
tree | 5e78b02d3d3a2dc82da03c4d493edfb68b51f594 /pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites | |
parent | 3407ed160302e8a1d75c2bcb2561af7e2f80e96b (diff) | |
download | pdf-over-5b2342a9e89b6a92f13ba24ad28a47c2d613ee5e.tar.gz pdf-over-5b2342a9e89b6a92f13ba24ad28a47c2d613ee5e.tar.bz2 pdf-over-5b2342a9e89b6a92f13ba24ad28a47c2d613ee5e.zip |
Some more String.isEmpty() replacements
Also fixes header comparison error
git-svn-id: https://joinup.ec.europa.eu/svn/pdf-over/trunk@327 174cde9d-5d70-4d2a-aa98-46368bc2aaf7
Diffstat (limited to 'pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites')
-rw-r--r-- | pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/OutputComposite.java | 2 | ||||
-rw-r--r-- | pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/SimpleConfigurationComposite.java | 10 |
2 files changed, 6 insertions, 6 deletions
diff --git a/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/OutputComposite.java b/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/OutputComposite.java index e55a6b86..492e9f9f 100644 --- a/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/OutputComposite.java +++ b/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/OutputComposite.java @@ -214,7 +214,7 @@ public class OutputComposite extends StateComposite { String outputFileName; String outputFolder = getOutputDir(); - if (!this.saveFailed && outputFolder != null && !outputFolder.trim().equals("")) { //$NON-NLS-1$ + if (!this.saveFailed && outputFolder != null && !outputFolder.trim().isEmpty()) { // Output folder configured, try to save there if(!outputFolder.endsWith(File.separator)) { diff --git a/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/SimpleConfigurationComposite.java b/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/SimpleConfigurationComposite.java index 7c127e04..403d5ffc 100644 --- a/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/SimpleConfigurationComposite.java +++ b/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/SimpleConfigurationComposite.java @@ -798,11 +798,11 @@ public class SimpleConfigurationComposite extends BaseConfigurationComposite { try { - if (image == null || image.trim().equals("")) { //$NON-NLS-1$ + if (image == null || image.trim().isEmpty()) { if (this.signer != null) { SignatureParameter param = this.signer.getPDFSigner() .newParameter(); - if(this.configurationContainer.getSignatureNote() != null && !this.configurationContainer.getSignatureNote().equals("")) { //$NON-NLS-1$ + if(this.configurationContainer.getSignatureNote() != null && !this.configurationContainer.getSignatureNote().isEmpty()) { param.setProperty("SIG_NOTE", this.configurationContainer.getSignatureNote()); //$NON-NLS-1$ } @@ -816,7 +816,7 @@ public class SimpleConfigurationComposite extends BaseConfigurationComposite { if (this.signer != null) { SignatureParameter param = this.signer.getPDFSigner() .newParameter(); - if(this.configurationContainer.getSignatureNote() != null && !this.configurationContainer.getSignatureNote().equals("")) { //$NON-NLS-1$ + if(this.configurationContainer.getSignatureNote() != null && !this.configurationContainer.getSignatureNote().isEmpty()) { param.setProperty("SIG_NOTE", this.configurationContainer.getSignatureNote()); //$NON-NLS-1$ } @@ -958,7 +958,7 @@ public class SimpleConfigurationComposite extends BaseConfigurationComposite { private void plainProxyPortSetter() throws InvalidPortException { String portString = this.txtProxyPort.getText(); int port = -1; - if (portString == null || portString.trim().equals("")) { //$NON-NLS-1$ + if (portString == null || portString.trim().isEmpty()) { port = -1; } else { try { @@ -1012,7 +1012,7 @@ public class SimpleConfigurationComposite extends BaseConfigurationComposite { } String emblemFile = this.configurationContainer.getEmblem(); - if (emblemFile != null && !emblemFile.trim().equals("")) { //$NON-NLS-1$ + if (emblemFile != null && !emblemFile.trim().isEmpty()) { // this.txtEmblemFile.setText(emblemFile); this.logoFile = emblemFile; try { |