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 /odk | |
parent | f9be44340a1fbabb67c7a33d8c9b4766a56c1fde (diff) |
java: use equalsIgnoreCase() instead of toLowerCase().equals()
Change-Id: I8f4afc7e15a9d85d99ea80edbbbd2b507b254ddc
Diffstat (limited to 'odk')
-rw-r--r-- | odk/source/com/sun/star/lib/loader/InstallationFinder.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/odk/source/com/sun/star/lib/loader/InstallationFinder.java b/odk/source/com/sun/star/lib/loader/InstallationFinder.java index 343ca54200f2..c8894435608e 100644 --- a/odk/source/com/sun/star/lib/loader/InstallationFinder.java +++ b/odk/source/com/sun/star/lib/loader/InstallationFinder.java @@ -448,7 +448,7 @@ final class InstallationFinder { String prefix = "file://"; if (oooUrl.length() < prefix.length() - || !oooUrl.substring(0, prefix.length()).toLowerCase().equals( + || !oooUrl.substring(0, prefix.length()).equalsIgnoreCase( prefix)) { return null; @@ -459,7 +459,7 @@ final class InstallationFinder { n = oooUrl.length(); } String host = oooUrl.substring(prefix.length(), n); - if (host.length() != 0 && !host.toLowerCase().equals("localhost")) { + if (host.length() != 0 && !host.equalsIgnoreCase("localhost")) { return null; } buf.append(host); |