am 60ae2617: Merge "If frameworks wants ASCII casing, it should explicity ask for it."
* commit '60ae2617b4b304fc3e45a441f87d1765714477ba': If frameworks wants ASCII casing, it should explicity ask for it.
This commit is contained in:
@@ -17,6 +17,7 @@
|
||||
package android.net;
|
||||
|
||||
import android.util.Log;
|
||||
import java.util.Locale;
|
||||
|
||||
/**
|
||||
* Describes the buildtime configuration of a network.
|
||||
@@ -63,7 +64,7 @@ public class NetworkConfig {
|
||||
*/
|
||||
public NetworkConfig(String init) {
|
||||
String fragments[] = init.split(",");
|
||||
name = fragments[0].trim().toLowerCase();
|
||||
name = fragments[0].trim().toLowerCase(Locale.ROOT);
|
||||
type = Integer.parseInt(fragments[1]);
|
||||
radio = Integer.parseInt(fragments[2]);
|
||||
priority = Integer.parseInt(fragments[3]);
|
||||
|
||||
@@ -25,6 +25,7 @@ import android.util.Log;
|
||||
import java.net.InetAddress;
|
||||
import java.net.InetSocketAddress;
|
||||
import java.net.UnknownHostException;
|
||||
import java.util.Locale;
|
||||
|
||||
/**
|
||||
* A container class for the http proxy info
|
||||
@@ -87,7 +88,7 @@ public class ProxyProperties implements Parcelable {
|
||||
if (mExclusionList == null) {
|
||||
mParsedExclusionList = new String[0];
|
||||
} else {
|
||||
String splitExclusionList[] = exclusionList.toLowerCase().split(",");
|
||||
String splitExclusionList[] = exclusionList.toLowerCase(Locale.ROOT).split(",");
|
||||
mParsedExclusionList = new String[splitExclusionList.length * 2];
|
||||
for (int i = 0; i < splitExclusionList.length; i++) {
|
||||
String s = splitExclusionList[i].trim();
|
||||
|
||||
Reference in New Issue
Block a user