[Libreoffice-commits] core.git: javaunohelper/com
rbuj
robert.buj at gmail.com
Wed Jul 30 05:27:50 PDT 2014
javaunohelper/com/sun/star/lib/uno/helper/PropertySet.java | 20 +++++--------
1 file changed, 9 insertions(+), 11 deletions(-)
New commits:
commit 84dbcaf91f34873d2ae02556c8a02f27401f8a5d
Author: rbuj <robert.buj at gmail.com>
Date: Wed Jul 30 11:24:09 2014 +0200
javaunohelper: If statement is redundant
Change-Id: I204e3755cf07c7bb9634d02913e893179d6e81e8
Reviewed-on: https://gerrit.libreoffice.org/10640
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 c62b005..3f84fb3 100644
--- a/javaunohelper/com/sun/star/lib/uno/helper/PropertySet.java
+++ b/javaunohelper/com/sun/star/lib/uno/helper/PropertySet.java
@@ -704,17 +704,15 @@ XMultiPropertySet
private boolean checkType(Object obj)
{
- if (obj == null
- || obj instanceof Boolean
- || obj instanceof Character
- || obj instanceof Number
- || obj instanceof String
- || obj instanceof XInterface
- || obj instanceof Type
- || obj instanceof com.sun.star.uno.Enum
- || obj.getClass().isArray())
- return true;
- return false;
+ return obj == null
+ || obj instanceof Boolean
+ || obj instanceof Character
+ || obj instanceof Number
+ || obj instanceof String
+ || obj instanceof XInterface
+ || obj instanceof Type
+ || obj instanceof com.sun.star.uno.Enum
+ || obj.getClass().isArray();
}
// Param object can be an Any or other object. If obj is null then the return value is null
More information about the Libreoffice-commits
mailing list