[Libreoffice-commits] core.git: javaunohelper/com
rbuj
robert.buj at gmail.com
Sat Sep 13 08:12:08 PDT 2014
javaunohelper/com/sun/star/lib/uno/helper/PropertySet.java | 2 +-
javaunohelper/com/sun/star/lib/uno/helper/PropertySetMixin.java | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
New commits:
commit ebeeebbceacd61f47c350cc17918fb7284defbad
Author: rbuj <robert.buj at gmail.com>
Date: Sat Sep 13 10:52:23 2014 +0200
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 at redhat.com>
Tested-by: David Tardon <dtardon at redhat.com>
diff --git a/javaunohelper/com/sun/star/lib/uno/helper/PropertySet.java b/javaunohelper/com/sun/star/lib/uno/helper/PropertySet.java
index c9bece6..aaf7691 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 067033a..344ab1f 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);
}
}
More information about the Libreoffice-commits
mailing list