Fixup comments:

- remind readers not to omit the Locale
- avoid possible false positives when searching for missing Locales

git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1578687 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Sebastian Bazley 2014-03-18 00:45:07 +00:00
parent b370df34ca
commit 6cbac13a39
1 changed files with 2 additions and 2 deletions

View File

@ -104,7 +104,7 @@ public final class SchemeRegistry {
public final Scheme get(final String name) {
Args.notNull(name, "Scheme name");
// leave it to the caller to use the correct name - all lowercase
//name = name.toLowerCase();
//name = name.toLowerCase(Locale.ENGLISH);
final Scheme found = registeredSchemes.get(name);
return found;
}
@ -136,7 +136,7 @@ public final class SchemeRegistry {
public final Scheme unregister(final String name) {
Args.notNull(name, "Scheme name");
// leave it to the caller to use the correct name - all lowercase
//name = name.toLowerCase();
//name = name.toLowerCase(Locale.ENGLISH);
final Scheme gone = registeredSchemes.remove(name);
return gone;
}