diff options
author | Noel Grandin <noel@peralex.com> | 2014-08-21 08:24:17 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2014-10-07 13:20:03 +0200 |
commit | 81968336ea6433293c603110a75bd13d5898c0eb (patch) | |
tree | c4bc0f45710302f3bd6734388ae9ff01d59c68ad /qadevOOo/runner/util | |
parent | f9be44340a1fbabb67c7a33d8c9b4766a56c1fde (diff) |
java: use equalsIgnoreCase() instead of toLowerCase().equals()
Change-Id: I8f4afc7e15a9d85d99ea80edbbbd2b507b254ddc
Diffstat (limited to 'qadevOOo/runner/util')
-rw-r--r-- | qadevOOo/runner/util/compare/DocComparatorFactory.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/qadevOOo/runner/util/compare/DocComparatorFactory.java b/qadevOOo/runner/util/compare/DocComparatorFactory.java index a6f216289292..9b6413c5e8a3 100644 --- a/qadevOOo/runner/util/compare/DocComparatorFactory.java +++ b/qadevOOo/runner/util/compare/DocComparatorFactory.java @@ -29,11 +29,11 @@ public class DocComparatorFactory */ static public DocComparator createComparator(String s, TestParameters aParams) throws IllegalArgumentException { - if (s.toLowerCase().equals("gfx") || s.toLowerCase().equals("graphical")) + if (s.equalsIgnoreCase("gfx") || s.equalsIgnoreCase("graphical")) { return GraphicalComparator.getInstance(aParams); } - else if (s.toLowerCase().equals("pdf")) + else if (s.equalsIgnoreCase("pdf")) { throw new IllegalArgumentException("PDF not implemented yet."); } |