Fix a random suggestion from a style checker

This commit is contained in:
Holden Karau 2012-03-09 09:04:06 -08:00 committed by Shay Banon
parent f9eeb37211
commit b2918d7c2b
1 changed files with 1 additions and 1 deletions

View File

@ -789,7 +789,7 @@ public class Strings {
*/
public static Locale parseLocaleString(String localeString) {
String[] parts = tokenizeToStringArray(localeString, "_ ", false, false);
String language = (parts.length > 0 ? parts[0] : "");
String language = (parts.length != 0 ? parts[0] : "");
String country = (parts.length > 1 ? parts[1] : "");
String variant = "";
if (parts.length >= 2) {