summaryrefslogtreecommitdiff
path: root/qadevOOo/runner/helper/URLHelper.java
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/runner/helper/URLHelper.java
parent2922a967a1da5f9c0a07b5390906307d0ae6fe48 (diff)
java: avoid unnecessary comparisons in boolean expressions
i.e. stuff like "x == true" Change-Id: Ib82a4a30e736df392405332fa197b588482cffcf
Diffstat (limited to 'qadevOOo/runner/helper/URLHelper.java')
-rw-r--r--qadevOOo/runner/helper/URLHelper.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/qadevOOo/runner/helper/URLHelper.java b/qadevOOo/runner/helper/URLHelper.java
index 60bebf87ee0e..4ca5605761d8 100644
--- a/qadevOOo/runner/helper/URLHelper.java
+++ b/qadevOOo/runner/helper/URLHelper.java
@@ -64,8 +64,8 @@ public class URLHelper
// => correct this problem first, otherwise office can't use these URL's
if(
(sFileURL != null ) &&
- (sFileURL.startsWith("file:/") == true ) &&
- (sFileURL.startsWith("file://") == false)
+ sFileURL.startsWith("file:/") &&
+ !sFileURL.startsWith("file://")
)
{
StringBuffer sWorkBuffer = new StringBuffer(sFileURL);