diff options
author | rbuj <robert.buj@gmail.com> | 2014-07-30 11:24:09 +0200 |
---|---|---|
committer | David Tardon <dtardon@redhat.com> | 2014-07-30 12:27:21 +0000 |
commit | 84dbcaf91f34873d2ae02556c8a02f27401f8a5d (patch) | |
tree | 5a6a1b4c3c114a6d126c90136e593a084a42b358 /javaunohelper | |
parent | c7c535351cec9089e232cc5cb3e59454cef27e17 (diff) |
javaunohelper: If statement is redundant
Change-Id: I204e3755cf07c7bb9634d02913e893179d6e81e8
Reviewed-on: https://gerrit.libreoffice.org/10640
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 | 20 |
1 files changed, 9 insertions, 11 deletions
diff --git a/javaunohelper/com/sun/star/lib/uno/helper/PropertySet.java b/javaunohelper/com/sun/star/lib/uno/helper/PropertySet.java index c62b005c918c..3f84fb3f9a4d 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 |