diff options
author | rbuj <robert.buj@gmail.com> | 2014-09-10 00:02:15 +0200 |
---|---|---|
committer | Noel Grandin <noelgrandin@gmail.com> | 2014-09-11 06:10:39 +0000 |
commit | f1b8d8832d38621ae9fbe08bf9bde414230fc5c3 (patch) | |
tree | a2b5fc4744e3421b13db3d2e6f61aa062561ca78 /qadevOOo/runner/convwatch | |
parent | 037d03b9facb414ba6be01fa6ee92fc7ca89f70c (diff) |
qadevOOo: use String.length()==0 instead of String.equals(empty string)
Change-Id: I5cdd1fb4fe77c7fc9614f2a6de8995d98d60b551
Reviewed-on: https://gerrit.libreoffice.org/11368
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Tested-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'qadevOOo/runner/convwatch')
-rw-r--r-- | qadevOOo/runner/convwatch/GraphicalDifferenceCheck.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/qadevOOo/runner/convwatch/GraphicalDifferenceCheck.java b/qadevOOo/runner/convwatch/GraphicalDifferenceCheck.java index 1e6971868f32..2d59022c527d 100644 --- a/qadevOOo/runner/convwatch/GraphicalDifferenceCheck.java +++ b/qadevOOo/runner/convwatch/GraphicalDifferenceCheck.java @@ -320,7 +320,7 @@ public class GraphicalDifferenceCheck private static String ensureEndingFileSep(String s) { - if(s != null && !s.equals("") && !s.endsWith(File.separator)) + if(s != null && s.length() != 0 && !s.endsWith(File.separator)) { s = s.trim() + File.separator; } |