diff options
author | tkellner <tkellner@174cde9d-5d70-4d2a-aa98-46368bc2aaf7> | 2013-04-10 19:26:47 +0000 |
---|---|---|
committer | tkellner <tkellner@174cde9d-5d70-4d2a-aa98-46368bc2aaf7> | 2013-04-10 19:26:47 +0000 |
commit | 3407ed160302e8a1d75c2bcb2561af7e2f80e96b (patch) | |
tree | e2b206266e4d0ee5be4a20b6b6139e6a802cc8f0 /pdf-over-gui/src | |
parent | 43000269fa98b7d47e57d3bdf4b9890f304be360 (diff) | |
download | mocca-3407ed160302e8a1d75c2bcb2561af7e2f80e96b.tar.gz mocca-3407ed160302e8a1d75c2bcb2561af7e2f80e96b.tar.bz2 mocca-3407ed160302e8a1d75c2bcb2561af7e2f80e96b.zip |
Use String.isEmpty()
git-svn-id: https://joinup.ec.europa.eu/svn/pdf-over/trunk@326 174cde9d-5d70-4d2a-aa98-46368bc2aaf7
Diffstat (limited to 'pdf-over-gui/src')
-rw-r--r-- | pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow/ConfigProviderImpl.java | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow/ConfigProviderImpl.java b/pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow/ConfigProviderImpl.java index 93aaead2..ae8d18db 100644 --- a/pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow/ConfigProviderImpl.java +++ b/pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow/ConfigProviderImpl.java @@ -149,7 +149,7 @@ public class ConfigProviderImpl implements ConfigProvider, ConfigManipulator { */ @Override public void setDefaultMobileNumber(String number) { - if (number == null || number.trim().equals("")) { //$NON-NLS-1$ + if (number == null || number.trim().isEmpty()) { this.defaultMobileNumber = STRING_EMPTY; } else { this.defaultMobileNumber = number; @@ -174,7 +174,7 @@ public class ConfigProviderImpl implements ConfigProvider, ConfigManipulator { */ @Override public void setDefaultPassword(String password) { - if (password == null || password.trim().equals("")) { //$NON-NLS-1$ + if (password == null || password.trim().isEmpty()) { this.defaultPassword = STRING_EMPTY; } else { this.defaultPassword = password; @@ -199,7 +199,7 @@ public class ConfigProviderImpl implements ConfigProvider, ConfigManipulator { */ @Override public void setDefaultEmblem(String emblem) { - if (emblem == null || emblem.trim().equals("")) { //$NON-NLS-1$ + if (emblem == null || emblem.trim().isEmpty()) { this.emblem = STRING_EMPTY; } else { this.emblem = emblem; @@ -224,7 +224,7 @@ public class ConfigProviderImpl implements ConfigProvider, ConfigManipulator { */ @Override public void setProxyHost(String host) { - if (host == null || host.trim().equals("")) { //$NON-NLS-1$ + if (host == null || host.trim().isEmpty()) { this.proxyHost = STRING_EMPTY; } else { this.proxyHost = host; @@ -271,7 +271,7 @@ public class ConfigProviderImpl implements ConfigProvider, ConfigManipulator { */ @Override public void setDefaultOutputFolder(String outputFolder) { - if (outputFolder == null || outputFolder.trim().equals("")) { //$NON-NLS-1$ + if (outputFolder == null || outputFolder.trim().isEmpty()) { this.outputFolder = STRING_EMPTY; } else { this.outputFolder = outputFolder; @@ -439,7 +439,7 @@ public class ConfigProviderImpl implements ConfigProvider, ConfigManipulator { String bku = config .getProperty(ConfigManipulator.MOBILE_BKU_URL_CONFIG); - if (bku != null && !bku.equals("")) { //$NON-NLS-1$ + if (bku != null && !bku.isEmpty()) { this.mobileBKU = bku; } @@ -447,7 +447,7 @@ public class ConfigProviderImpl implements ConfigProvider, ConfigManipulator { String proxyPortString = config .getProperty(ConfigManipulator.PROXY_PORT_CONFIG); - if (proxyPortString != null && !proxyPortString.trim().equals("")) { //$NON-NLS-1$ + if (proxyPortString != null && !proxyPortString.trim().isEmpty()) { int port = Integer.parseInt(proxyPortString); if (port > 0 && port <= 0xFFFF) { @@ -492,7 +492,7 @@ public class ConfigProviderImpl implements ConfigProvider, ConfigManipulator { SignaturePosition position = null; - if (signaturePosition != null && !signaturePosition.trim().equals("")) { //$NON-NLS-1$ + if (signaturePosition != null && !signaturePosition.trim().isEmpty()) { signaturePosition = signaturePosition.trim().toLowerCase(); @@ -563,7 +563,7 @@ public class ConfigProviderImpl implements ConfigProvider, ConfigManipulator { */ @Override public void setSignatureNote(String note) { - if (note == null || note.trim().equals("")) { //$NON-NLS-1$ + if (note == null || note.trim().isEmpty()) { this.signatureNote = STRING_EMPTY; } else { this.signatureNote = note; |