summaryrefslogtreecommitdiff
path: root/javaunohelper
diff options
context:
space:
mode:
authorrbuj <robert.buj@gmail.com>2014-09-13 10:52:23 +0200
committerDavid Tardon <dtardon@redhat.com>2014-09-13 15:11:43 +0000
commitebeeebbceacd61f47c350cc17918fb7284defbad (patch)
tree5549d3176c1cd583fb197e08c2b7b7c9c984cf4c /javaunohelper
parentfafb0db5d24010f7390df0df791cebe3e6ce3164 (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.java2
-rw-r--r--javaunohelper/com/sun/star/lib/uno/helper/PropertySetMixin.java2
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);
}
}