summaryrefslogtreecommitdiff
path: root/javaunohelper
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2014-08-13 10:52:12 +0200
committerNoel Grandin <noel@peralex.com>2014-08-20 10:35:53 +0200
commita753a458e582dc0aa5e94ea350f4db06488f26f2 (patch)
tree668725470ddf51b52f3edc290e996dc2576c7dcf /javaunohelper
parent60f152caeee38579433a31dd3a98e91dc3d23ff6 (diff)
java: avoid if..else when returning boolean values
Change-Id: Iab52762a9abfe8735223372b09638ce9d8d44318
Diffstat (limited to 'javaunohelper')
-rw-r--r--javaunohelper/test/com/sun/star/lib/uno/helper/ProxyProvider.java10
1 files changed, 2 insertions, 8 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 2e48cd99a010..f5b5872d0c65 100644
--- a/javaunohelper/test/com/sun/star/lib/uno/helper/ProxyProvider.java
+++ b/javaunohelper/test/com/sun/star/lib/uno/helper/ProxyProvider.java
@@ -80,17 +80,11 @@ class Proxy implements IQueryInterface, XEventListener
if (object instanceof IQueryInterface)
{
IQueryInterface iquery = (IQueryInterface) object;
- if (iquery.getOid().equals(oid))
- return true;
- else
- return false;
+ return (iquery.getOid().equals(oid));
}
String oidObj = UnoRuntime.generateOid(object);
- if (oidObj.equals(oid))
- return true;
- else
- return false;
+ return (oidObj.equals(oid));
}
public Object queryInterface(Type type) {