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>
This commit is contained in:
Robert Antoni Buj i Gelonch
2014-10-14 12:32:15 +02:00
committed by Noel Grandin
parent 791ed2c654
commit 0fdba36ab6
2 changed files with 2 additions and 2 deletions

View File

@@ -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");

View File

@@ -212,7 +212,7 @@ public class ScriptMetaData extends ScriptEntry {
}
if (classPathVec.size() == 0) {
if (classPathVec.isEmpty()) {
URL url = createURL(parcelPath);
if (url != null) {