summaryrefslogtreecommitdiff
path: root/javaunohelper
diff options
context:
space:
mode:
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);
}
}