summaryrefslogtreecommitdiff
path: root/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites
diff options
context:
space:
mode:
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.java2
-rw-r--r--pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/SimpleConfigurationComposite.java10
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 {