Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(61)

Unified Diff: chrome/android/java/src/org/chromium/chrome/browser/preferences/autofill/AutofillCreditCardEditor.java

Issue 800903004: Resolve lint warnings related to DefaultLocale and SimpleDateFormat (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: comments incorporated Created 5 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/android/java/src/org/chromium/chrome/browser/omnibox/OmniboxUrlEmphasizer.java ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/android/java/src/org/chromium/chrome/browser/preferences/autofill/AutofillCreditCardEditor.java
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/preferences/autofill/AutofillCreditCardEditor.java b/chrome/android/java/src/org/chromium/chrome/browser/preferences/autofill/AutofillCreditCardEditor.java
index 86560d51ec8ff9ee32f7300b1829c52ef926ac86..3b441fc8c9416c79abf1b720657c2c72e51d3599 100644
--- a/chrome/android/java/src/org/chromium/chrome/browser/preferences/autofill/AutofillCreditCardEditor.java
+++ b/chrome/android/java/src/org/chromium/chrome/browser/preferences/autofill/AutofillCreditCardEditor.java
@@ -25,6 +25,7 @@ import org.chromium.chrome.browser.autofill.PersonalDataManager.CreditCard;
import java.text.SimpleDateFormat;
import java.util.Calendar;
+import java.util.Locale;
/**
* Provides the Java-ui for editing a Credit Card autofill entry.
@@ -113,7 +114,7 @@ public class AutofillCreditCardEditor extends Fragment implements OnItemSelected
android.R.layout.simple_spinner_item);
Calendar calendar = Calendar.getInstance();
- SimpleDateFormat formatter = new SimpleDateFormat("MMMM (MM)");
+ SimpleDateFormat formatter = new SimpleDateFormat("MMMM (MM)", Locale.getDefault());
for (int month = 0; month < 12; month++) {
calendar.set(Calendar.MONTH, month);
« no previous file with comments | « chrome/android/java/src/org/chromium/chrome/browser/omnibox/OmniboxUrlEmphasizer.java ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698