@Test public void testCaseInsensitivity() throws Exception { DefaultHostsFileEntriesResolver resolver = new DefaultHostsFileEntriesResolver(); Assert.assertEquals(resolver.normalize("localhost"), resolver.normalize("LOCALHOST")); }
String normalize(String inetHost) { return inetHost.toLowerCase(Locale.ENGLISH); }
DefaultHostsFileEntriesResolver implements HostsFileEntriesResolver { String normalize(String inetHost) { return inetHost.toLowerCase(Locale.ENGLISH); } }
DefaultHostsFileEntriesResolver implements HostsFileEntriesResolver { String normalize(String inetHost) { return inetHost.toLowerCase(Locale.ENGLISH); } DefaultHostsFileEntriesResolver();   DefaultHostsFileEntriesResolver(HostsFileEntries entries); }
DefaultHostsFileEntriesResolver implements HostsFileEntriesResolver { String normalize(String inetHost) { return inetHost.toLowerCase(Locale.ENGLISH); } DefaultHostsFileEntriesResolver();   DefaultHostsFileEntriesResolver(HostsFileEntries entries); @Override InetAddress address(String inetHost, ResolvedAddressTypes resolvedAddressTypes); }
DefaultHostsFileEntriesResolver implements HostsFileEntriesResolver { String normalize(String inetHost) { return inetHost.toLowerCase(Locale.ENGLISH); } DefaultHostsFileEntriesResolver();   DefaultHostsFileEntriesResolver(HostsFileEntries entries); @Override InetAddress address(String inetHost, ResolvedAddressTypes resolvedAddressTypes);  }