Why does Android Lint warn about String.format using default locale when explicitly using Locale.US?
问题 I originally called String.format this way: return String.format("%s %f %f", anotherString, doubleA, doubleB); Which made Android Lint generate this warning: Implicitly using the default locale is a common source of bugs: Use String.format(Locale, ...) instead So I changed it to use Locale.US explicitly, based on what I read at http://developer.android.com/reference/java/util/Locale.html under the "Be wary of the default locale" section: return String.format(Locale.US, "%s %f %f",