[Libreoffice-commits] core.git: scripting/java
Robert Antoni Buj i Gelonch
robert.buj at gmail.com
Tue Oct 14 05:29:25 PDT 2014
scripting/java/com/sun/star/script/framework/container/ParcelDescriptor.java | 2 +-
scripting/java/com/sun/star/script/framework/container/ScriptMetaData.java | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
New commits:
commit 0fdba36ab6aa1eef3e147371153b7c5d12c11cae
Author: Robert Antoni Buj i Gelonch <robert.buj at gmail.com>
Date: Tue Oct 14 12:32:15 2014 +0200
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 at gmail.com>
Tested-by: Noel Grandin <noelgrandin at gmail.com>
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 14ebb24..f8b5d0d 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 cc4094d..d19928f 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) {
More information about the Libreoffice-commits
mailing list