Kaydet (Commit) 84dbcaf9 authored tarafından rbuj's avatar rbuj Kaydeden (comit) David Tardon

javaunohelper: If statement is redundant

Change-Id: I204e3755cf07c7bb9634d02913e893179d6e81e8
Reviewed-on: https://gerrit.libreoffice.org/10640Reviewed-by: 's avatarDavid Tardon <dtardon@redhat.com>
Tested-by: 's avatarDavid Tardon <dtardon@redhat.com>
üst c7c53535
...@@ -704,17 +704,15 @@ XMultiPropertySet ...@@ -704,17 +704,15 @@ XMultiPropertySet
private boolean checkType(Object obj) private boolean checkType(Object obj)
{ {
if (obj == null return obj == null
|| obj instanceof Boolean || obj instanceof Boolean
|| obj instanceof Character || obj instanceof Character
|| obj instanceof Number || obj instanceof Number
|| obj instanceof String || obj instanceof String
|| obj instanceof XInterface || obj instanceof XInterface
|| obj instanceof Type || obj instanceof Type
|| obj instanceof com.sun.star.uno.Enum || obj instanceof com.sun.star.uno.Enum
|| obj.getClass().isArray()) || obj.getClass().isArray();
return true;
return false;
} }
// Param object can be an Any or other object. If obj is null then the return value is null // Param object can be an Any or other object. If obj is null then the return value is null
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment