summaryrefslogtreecommitdiff
path: root/wizards
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2014-08-21 08:27:25 +0200
committerNoel Grandin <noel@peralex.com>2014-10-07 13:20:03 +0200
commit68fa1410975ccecc35db8a97669f0fbe5ef9b451 (patch)
tree5fd946ab04ea37e17813ec3c0345badc59ae5400 /wizards
parent81968336ea6433293c603110a75bd13d5898c0eb (diff)
java: use isEmpty() instead of "size() == 0"
Change-Id: I23e1038246999b0744d8e9ae83b66fa1f7dafa99
Diffstat (limited to 'wizards')
-rw-r--r--wizards/com/sun/star/wizards/common/FileAccess.java2
-rw-r--r--wizards/com/sun/star/wizards/form/FormDocument.java2
2 files changed, 2 insertions, 2 deletions
diff --git a/wizards/com/sun/star/wizards/common/FileAccess.java b/wizards/com/sun/star/wizards/common/FileAccess.java
index 862f1b8c9c58..a44c786cea2a 100644
--- a/wizards/com/sun/star/wizards/common/FileAccess.java
+++ b/wizards/com/sun/star/wizards/common/FileAccess.java
@@ -632,7 +632,7 @@ public class FileAccess
throws NoValidPathException
{
String[][] LocLayoutFiles = new String[2][];
- if (FolderName.size() == 0)
+ if (FolderName.isEmpty())
{
throw new NoValidPathException(null, "Path not given.");
}
diff --git a/wizards/com/sun/star/wizards/form/FormDocument.java b/wizards/com/sun/star/wizards/form/FormDocument.java
index eb2a997ef6bf..15d526f4e686 100644
--- a/wizards/com/sun/star/wizards/form/FormDocument.java
+++ b/wizards/com/sun/star/wizards/form/FormDocument.java
@@ -141,7 +141,7 @@ public class FormDocument extends TextDocument
adjustPageStyle();
if (_baddParentForm)
{
- if (oControlForms.size() == 0)
+ if (oControlForms.isEmpty())
{
final ControlForm aMainControlForm = new ControlForm(this, SOMAINFORM, aMainFormPoint, getMainFormSize(FormWizard.AS_GRID));
oControlForms.add(aMainControlForm);