summaryrefslogtreecommitdiff
path: root/qadevOOo/runner
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2014-08-20 15:30:36 +0200
committerNoel Grandin <noel@peralex.com>2014-10-07 13:20:02 +0200
commitdc53e3027bb1a278164f15d0a31f20c15608d10e (patch)
tree84fe7e21121789981ac18e53e1f45453a064e279 /qadevOOo/runner
parent726fc58d0cbdb0fa6d71e5c896889a7c5b64cd9c (diff)
java: simplify conditions involving logical negation
Change-Id: Ib45e58273e650ef9a31dbdb5f71e995a5976f50e
Diffstat (limited to 'qadevOOo/runner')
-rw-r--r--qadevOOo/runner/convwatch/MSOfficePrint.java2
-rw-r--r--qadevOOo/runner/convwatch/PerformanceContainer.java2
-rw-r--r--qadevOOo/runner/graphical/MSOfficePostscriptCreator.java2
-rw-r--r--qadevOOo/runner/graphical/PerformanceContainer.java2
-rw-r--r--qadevOOo/runner/helper/OfficeProvider.java2
5 files changed, 5 insertions, 5 deletions
diff --git a/qadevOOo/runner/convwatch/MSOfficePrint.java b/qadevOOo/runner/convwatch/MSOfficePrint.java
index 821678284557..b80bdf57331e 100644
--- a/qadevOOo/runner/convwatch/MSOfficePrint.java
+++ b/qadevOOo/runner/convwatch/MSOfficePrint.java
@@ -788,7 +788,7 @@ public class MSOfficePrint
if (aLine != null)
{
aLine = aLine.trim();
- if ( (! (aLine.length() < 2) ) &&
+ if ( (aLine.length() >= 2 ) &&
(! aLine.startsWith("#")) &&
(! aLine.startsWith(";")) )
{
diff --git a/qadevOOo/runner/convwatch/PerformanceContainer.java b/qadevOOo/runner/convwatch/PerformanceContainer.java
index 9db65e08b328..f9747fcd017e 100644
--- a/qadevOOo/runner/convwatch/PerformanceContainer.java
+++ b/qadevOOo/runner/convwatch/PerformanceContainer.java
@@ -161,7 +161,7 @@ public class PerformanceContainer /* extends *//* implements */ {
{
sLine = aRandomAccessFile.readLine();
if ( (sLine != null) &&
- (! (sLine.length() < 2) ) &&
+ (sLine.length() >= 2 ) &&
(! sLine.startsWith("#")))
{
if (sLine.startsWith("WordStartTime="))
diff --git a/qadevOOo/runner/graphical/MSOfficePostscriptCreator.java b/qadevOOo/runner/graphical/MSOfficePostscriptCreator.java
index aeebf6927588..9e2a9c38ced1 100644
--- a/qadevOOo/runner/graphical/MSOfficePostscriptCreator.java
+++ b/qadevOOo/runner/graphical/MSOfficePostscriptCreator.java
@@ -635,7 +635,7 @@ public class MSOfficePostscriptCreator implements IOffice
if (aLine != null)
{
aLine = aLine.trim();
- if ( (! (aLine.length() < 2) ) &&
+ if ( (aLine.length() >= 2 ) &&
(! aLine.startsWith("#")) &&
(! aLine.startsWith(";")) )
{
diff --git a/qadevOOo/runner/graphical/PerformanceContainer.java b/qadevOOo/runner/graphical/PerformanceContainer.java
index 9291d01b5c00..e21f68432be5 100644
--- a/qadevOOo/runner/graphical/PerformanceContainer.java
+++ b/qadevOOo/runner/graphical/PerformanceContainer.java
@@ -177,7 +177,7 @@ public class PerformanceContainer /* extends *//* implements */ {
{
sLine = aRandomAccessFile.readLine();
if ( (sLine != null) &&
- (! (sLine.length() < 2) ) &&
+ (sLine.length() >= 2 ) &&
(! sLine.startsWith("#")))
{
if (sLine.startsWith("WordStartTime="))
diff --git a/qadevOOo/runner/helper/OfficeProvider.java b/qadevOOo/runner/helper/OfficeProvider.java
index d5ac4bacbaf1..58fdd0126756 100644
--- a/qadevOOo/runner/helper/OfficeProvider.java
+++ b/qadevOOo/runner/helper/OfficeProvider.java
@@ -671,7 +671,7 @@ public class OfficeProvider implements AppProvider
if (sep.equalsIgnoreCase("\\"))
{
- if (!(idx2 < 0))
+ if (idx2 >= 0)
{
sysDir = sysDir.substring(1);
}