mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1170886 - Specify correct Locale in String.toUpperCase and remove @SuppressLint. r=rnewman
This commit is contained in:
parent
992648b749
commit
5d82559ac3
@ -31,7 +31,6 @@ import org.mozilla.gecko.background.common.log.Logger;
|
||||
import org.mozilla.gecko.background.nativecode.NativeCrypto;
|
||||
import org.mozilla.gecko.sync.setup.Constants;
|
||||
|
||||
import android.annotation.SuppressLint;
|
||||
import android.content.Context;
|
||||
import android.content.SharedPreferences;
|
||||
import android.os.Bundle;
|
||||
@ -144,11 +143,10 @@ public class Utils {
|
||||
return Base64.decodeBase64(base64.getBytes("UTF-8"));
|
||||
}
|
||||
|
||||
@SuppressLint("DefaultLocale")
|
||||
public static byte[] decodeFriendlyBase32(String base32) {
|
||||
Base32 converter = new Base32();
|
||||
final String translated = base32.replace('8', 'l').replace('9', 'o');
|
||||
return converter.decode(translated.toUpperCase());
|
||||
return converter.decode(translated.toUpperCase(Locale.US));
|
||||
}
|
||||
|
||||
public static byte[] hex2Byte(String str, int byteLength) {
|
||||
|
Loading…
Reference in New Issue
Block a user