From 81968336ea6433293c603110a75bd13d5898c0eb Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Thu, 21 Aug 2014 08:24:17 +0200 Subject: java: use equalsIgnoreCase() instead of toLowerCase().equals() Change-Id: I8f4afc7e15a9d85d99ea80edbbbd2b507b254ddc --- odk/source/com/sun/star/lib/loader/InstallationFinder.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'odk/source/com') 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); -- cgit