diff options
author | Noel Grandin <noel@peralex.com> | 2014-08-05 13:19:44 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2014-08-08 09:48:19 +0200 |
commit | b6a83e99c8f4442c3c96198ac816dcb99419a67e (patch) | |
tree | 680dc3e55306b355983aa8c810f610015a95bf5d /javaunohelper/test | |
parent | 8f020a45fa69c9458844b8b621df2e0b15ec3d16 (diff) |
java: remove redundant null checks
Change-Id: Ia42e5ed715fbd3f5b84029a9844da55f307c6260
Diffstat (limited to 'javaunohelper/test')
-rw-r--r-- | javaunohelper/test/com/sun/star/lib/uno/helper/ProxyProvider.java | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/javaunohelper/test/com/sun/star/lib/uno/helper/ProxyProvider.java b/javaunohelper/test/com/sun/star/lib/uno/helper/ProxyProvider.java index d2c1bbfa7b48..f5408545b6b5 100644 --- a/javaunohelper/test/com/sun/star/lib/uno/helper/ProxyProvider.java +++ b/javaunohelper/test/com/sun/star/lib/uno/helper/ProxyProvider.java @@ -80,13 +80,10 @@ class Proxy implements IQueryInterface, XEventListener if (object instanceof IQueryInterface) { IQueryInterface iquery = (IQueryInterface) object; - if (iquery != null) - { - if (iquery.getOid().equals(oid)) - return true; - else - return false; - } + if (iquery.getOid().equals(oid)) + return true; + else + return false; } String oidObj = UnoRuntime.generateOid(object); |