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:
committed by
Noel Grandin
parent
791ed2c654
commit
0fdba36ab6
@@ -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");
|
||||
|
||||
|
@@ -212,7 +212,7 @@ public class ScriptMetaData extends ScriptEntry {
|
||||
|
||||
}
|
||||
|
||||
if (classPathVec.size() == 0) {
|
||||
if (classPathVec.isEmpty()) {
|
||||
URL url = createURL(parcelPath);
|
||||
|
||||
if (url != null) {
|
||||
|
Reference in New Issue
Block a user