diff options
-rw-r--r-- | scripting/java/com/sun/star/script/framework/container/ParcelDescriptor.java | 2 | ||||
-rw-r--r-- | scripting/java/com/sun/star/script/framework/container/ScriptMetaData.java | 2 |
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) { |