summaryrefslogtreecommitdiff
path: root/javaunohelper/com
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2014-08-13 10:19:51 +0200
committerNoel Grandin <noel@peralex.com>2014-08-20 10:35:53 +0200
commit60f152caeee38579433a31dd3a98e91dc3d23ff6 (patch)
tree15ba69f938e09bb173ca7de2e1b21b62e740ea40 /javaunohelper/com
parent2922a967a1da5f9c0a07b5390906307d0ae6fe48 (diff)
java: avoid unnecessary comparisons in boolean expressions
i.e. stuff like "x == true" Change-Id: Ib82a4a30e736df392405332fa197b588482cffcf
Diffstat (limited to 'javaunohelper/com')
-rw-r--r--javaunohelper/com/sun/star/lib/uno/helper/InterfaceContainer.java6
-rw-r--r--javaunohelper/com/sun/star/lib/uno/helper/PropertySet.java2
2 files changed, 4 insertions, 4 deletions
diff --git a/javaunohelper/com/sun/star/lib/uno/helper/InterfaceContainer.java b/javaunohelper/com/sun/star/lib/uno/helper/InterfaceContainer.java
index caf5cdc9b2f3..650be99c87c3 100644
--- a/javaunohelper/com/sun/star/lib/uno/helper/InterfaceContainer.java
+++ b/javaunohelper/com/sun/star/lib/uno/helper/InterfaceContainer.java
@@ -314,7 +314,7 @@ public class InterfaceContainer implements Cloneable
while (it.hasNext())
{
Object obj= it.next();
- if (false == contains(obj))
+ if (!contains(obj))
{
retVal= false;
break;
@@ -556,7 +556,7 @@ public class InterfaceContainer implements Cloneable
break;
}
}
- if (bExists == false)
+ if (!bExists)
{
itColl= collection.iterator();
while (itColl.hasNext())
@@ -572,7 +572,7 @@ public class InterfaceContainer implements Cloneable
}
}
}
- if (bExists == true)
+ if (bExists)
arRetained[indexRetained++]= curElem;
}
retVal= size != indexRetained;
diff --git a/javaunohelper/com/sun/star/lib/uno/helper/PropertySet.java b/javaunohelper/com/sun/star/lib/uno/helper/PropertySet.java
index ca72af9c81ac..227dcdeff26e 100644
--- a/javaunohelper/com/sun/star/lib/uno/helper/PropertySet.java
+++ b/javaunohelper/com/sun/star/lib/uno/helper/PropertySet.java
@@ -264,7 +264,7 @@ XMultiPropertySet
*/
protected void assignPropertyId(Property prop, Object id)
{
- if (id instanceof String && ((String) id).equals("") == false)
+ if (id instanceof String && !((String) id).equals(""))
_propertyToIdMap.put(prop, id);
}