diff options
author | rbuj <robert.buj@gmail.com> | 2014-09-13 10:52:23 +0200 |
---|---|---|
committer | David Tardon <dtardon@redhat.com> | 2014-09-13 15:11:43 +0000 |
commit | ebeeebbceacd61f47c350cc17918fb7284defbad (patch) | |
tree | 5549d3176c1cd583fb197e08c2b7b7c9c984cf4c /javaunohelper | |
parent | fafb0db5d24010f7390df0df791cebe3e6ce3164 (diff) |
javaunohelper: use String.length()==0 instead of String.equals(empty string)
Change-Id: Ic738dbbee4ce972ebf7efcfda33ccbb3f3ac48ff
Reviewed-on: https://gerrit.libreoffice.org/11432
Reviewed-by: David Tardon <dtardon@redhat.com>
Tested-by: David Tardon <dtardon@redhat.com>
Diffstat (limited to 'javaunohelper')
-rw-r--r-- | javaunohelper/com/sun/star/lib/uno/helper/PropertySet.java | 2 | ||||
-rw-r--r-- | javaunohelper/com/sun/star/lib/uno/helper/PropertySetMixin.java | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/javaunohelper/com/sun/star/lib/uno/helper/PropertySet.java b/javaunohelper/com/sun/star/lib/uno/helper/PropertySet.java index c9bece6ac9fa..aaf7691c123a 100644 --- a/javaunohelper/com/sun/star/lib/uno/helper/PropertySet.java +++ b/javaunohelper/com/sun/star/lib/uno/helper/PropertySet.java @@ -264,7 +264,7 @@ XMultiPropertySet */ protected void assignPropertyId(Property prop, Object id) { - if (id instanceof String && !((String) id).equals("")) + if (id instanceof String && ((String) id).length() != 0) _propertyToIdMap.put(prop, id); } diff --git a/javaunohelper/com/sun/star/lib/uno/helper/PropertySetMixin.java b/javaunohelper/com/sun/star/lib/uno/helper/PropertySetMixin.java index 067033a7a048..344ab1f16a28 100644 --- a/javaunohelper/com/sun/star/lib/uno/helper/PropertySetMixin.java +++ b/javaunohelper/com/sun/star/lib/uno/helper/PropertySetMixin.java @@ -986,7 +986,7 @@ public final class PropertySetMixin { private void checkUnknown(String propertyName) throws UnknownPropertyException { - if (!propertyName.equals("")) { + if (propertyName.length() != 0) { get(this, propertyName); } } |