summaryrefslogtreecommitdiff
path: root/scripting/java
diff options
context:
space:
mode:
authorRobert Antoni Buj i Gelonch <robert.buj@gmail.com>2014-10-14 12:32:15 +0200
committerNoel Grandin <noelgrandin@gmail.com>2014-10-14 12:29:02 +0000
commit0fdba36ab6aa1eef3e147371153b7c5d12c11cae (patch)
tree9c316f85024a51ee29388e0c51aa86b422b76512 /scripting/java
parent791ed2c654509c8e20af473d5413e8031bceddc0 (diff)
scripting: replace '.size() == 0' with '.isEmpty()' (collections)
http://docs.oracle.com/javase/1.5.0/docs/api/java/util/Map.html#isEmpty() http://docs.oracle.com/javase/1.5.0/docs/api/java/util/ArrayList.html#isEmpty() Change-Id: I76d8d8be2794655cb27ab121759494d7084b4744 Reviewed-on: https://gerrit.libreoffice.org/11967 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'scripting/java')
-rw-r--r--scripting/java/com/sun/star/script/framework/container/ParcelDescriptor.java2
-rw-r--r--scripting/java/com/sun/star/script/framework/container/ScriptMetaData.java2
2 files changed, 2 insertions, 2 deletions
diff --git a/scripting/java/com/sun/star/script/framework/container/ParcelDescriptor.java b/scripting/java/com/sun/star/script/framework/container/ParcelDescriptor.java
index 14ebb2421cb5..f8b5d0ddb960 100644
--- a/scripting/java/com/sun/star/script/framework/container/ParcelDescriptor.java
+++ b/scripting/java/com/sun/star/script/framework/container/ParcelDescriptor.java
@@ -352,7 +352,7 @@ public class ParcelDescriptor {
item.setAttribute("value", script.getLanguageName());
root.appendChild(item);
- if (languagedepprops != null && languagedepprops.size() != 0) {
+ if (languagedepprops != null && !languagedepprops.isEmpty()) {
String key;
item = document.createElement("languagedepprops");
diff --git a/scripting/java/com/sun/star/script/framework/container/ScriptMetaData.java b/scripting/java/com/sun/star/script/framework/container/ScriptMetaData.java
index cc4094d82024..d19928fa445e 100644
--- a/scripting/java/com/sun/star/script/framework/container/ScriptMetaData.java
+++ b/scripting/java/com/sun/star/script/framework/container/ScriptMetaData.java
@@ -212,7 +212,7 @@ public class ScriptMetaData extends ScriptEntry {
}
- if (classPathVec.size() == 0) {
+ if (classPathVec.isEmpty()) {
URL url = createURL(parcelPath);
if (url != null) {