scripting: use String.length()==0 instead of String.equals(empty string)
Change-Id: Icff6a5d19aaf7ac7ebb0cd54140bd388cba0f24d Reviewed-on: https://gerrit.libreoffice.org/11431 Reviewed-by: David Tardon <dtardon@redhat.com> Tested-by: David Tardon <dtardon@redhat.com>
This commit is contained in:
@@ -332,7 +332,7 @@ public class ParcelDescriptor {
|
||||
|
||||
tempitem = document.createElement("description");
|
||||
String description = script.getDescription();
|
||||
if (description == null || description.equals(""))
|
||||
if (description == null || description.length() == 0)
|
||||
{
|
||||
description = script.getLogicalName();
|
||||
}
|
||||
|
Reference in New Issue
Block a user