summaryrefslogtreecommitdiff
path: root/qadevOOo/testdocs
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2014-05-06 07:44:11 +0200
committerNoel Grandin <noel@peralex.com>2014-05-06 07:45:25 +0200
commit794f09f195a449e387ebfbd53eb1b693803c95e7 (patch)
tree4c82e01015ccac094261060021b49757dab12f19 /qadevOOo/testdocs
parent3f569908ac72c20826a45ebed59af9b1e5449207 (diff)
simplify ternary conditions "xxx ? true : yyy"
Look for code like: xxx ? true : yyy; Which can be simplified to: xxx || yyy Change-Id: Ib7ca86580bfd0cf04674328a3c0cf3747de4758d
Diffstat (limited to 'qadevOOo/testdocs')
-rw-r--r--qadevOOo/testdocs/qadevlibs/source/com/sun/star/cmp/MyPersistObject.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/qadevOOo/testdocs/qadevlibs/source/com/sun/star/cmp/MyPersistObject.java b/qadevOOo/testdocs/qadevlibs/source/com/sun/star/cmp/MyPersistObject.java
index 999479aa35f7..a3fdd14658d2 100644
--- a/qadevOOo/testdocs/qadevlibs/source/com/sun/star/cmp/MyPersistObject.java
+++ b/qadevOOo/testdocs/qadevlibs/source/com/sun/star/cmp/MyPersistObject.java
@@ -68,7 +68,7 @@ public class MyPersistObject implements XPersistObject, XTypeProvider,
}
public boolean hasPropertyByName(String name) {
int i = getPropertyIndexByName(name);
- return i>0?true:false;
+ return i>0;
}
}