summaryrefslogtreecommitdiff
path: root/qadevOOo/tests/java/mod
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 /qadevOOo/tests/java/mod
parent2922a967a1da5f9c0a07b5390906307d0ae6fe48 (diff)
java: avoid unnecessary comparisons in boolean expressions
i.e. stuff like "x == true" Change-Id: Ib82a4a30e736df392405332fa197b588482cffcf
Diffstat (limited to 'qadevOOo/tests/java/mod')
-rw-r--r--qadevOOo/tests/java/mod/_xmloff/Draw/XMLSettingsImporter.java2
-rw-r--r--qadevOOo/tests/java/mod/_xmloff/Impress/XMLSettingsImporter.java2
2 files changed, 2 insertions, 2 deletions
diff --git a/qadevOOo/tests/java/mod/_xmloff/Draw/XMLSettingsImporter.java b/qadevOOo/tests/java/mod/_xmloff/Draw/XMLSettingsImporter.java
index 97dc7c8db94d..0a7159a8426f 100644
--- a/qadevOOo/tests/java/mod/_xmloff/Draw/XMLSettingsImporter.java
+++ b/qadevOOo/tests/java/mod/_xmloff/Draw/XMLSettingsImporter.java
@@ -177,7 +177,7 @@ public class XMLSettingsImporter extends TestCase {
xPropSet.getPropertyValue("IsLayerMode");
logF.println("'IsLayerMode' property value is '"
+ value + "'");
- return value.booleanValue() == true;
+ return value.booleanValue();
} catch (com.sun.star.uno.Exception e) {
logF.println("Exception while checking import :") ;
e.printStackTrace(logF) ;
diff --git a/qadevOOo/tests/java/mod/_xmloff/Impress/XMLSettingsImporter.java b/qadevOOo/tests/java/mod/_xmloff/Impress/XMLSettingsImporter.java
index 02dfd150ed1f..82e5ef90fb59 100644
--- a/qadevOOo/tests/java/mod/_xmloff/Impress/XMLSettingsImporter.java
+++ b/qadevOOo/tests/java/mod/_xmloff/Impress/XMLSettingsImporter.java
@@ -191,7 +191,7 @@ public class XMLSettingsImporter extends TestCase {
}
logF.println("Property \"IsLayerMode\" after import is "
+ propValue);
- if ( propValue.booleanValue() == true ) {
+ if ( propValue.booleanValue() ) {
return true;
} else {
return false;