aboutsummaryrefslogtreecommitdiffstats
path: root/lint/cli
diff options
context:
space:
mode:
authorTor Norbye <tnorbye@google.com>2012-08-30 08:43:40 -0700
committerTor Norbye <tnorbye@google.com>2012-08-30 08:43:40 -0700
commit507724d3568043e313607003d080c607a01cf7bd (patch)
treedfc991241a02a59493f1ca5667755fe755882ddb /lint/cli
parente37f8143de436a97cca62801637c6e985404c513 (diff)
downloadsdk-507724d3568043e313607003d080c607a01cf7bd.zip
sdk-507724d3568043e313607003d080c607a01cf7bd.tar.gz
sdk-507724d3568043e313607003d080c607a01cf7bd.tar.bz2
Also check SimpleDateFormat calls for explicit locale
This changeset expands on the lint check for calling String convenience methods that are locale sensitive without an explicit locale (issue 36822). It checks whether a SimpleDateFormat constructor that uses the default locale is called, and if so suggests either specifying a locale or using one of the pre-configured locale sensitive instances of SimpleDateFormat. Change-Id: Ic4fcb72c2ee6b31d1534b4d909493fef7dcff867
Diffstat (limited to 'lint/cli')
-rw-r--r--lint/cli/src/com/android/tools/lint/Main.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/lint/cli/src/com/android/tools/lint/Main.java b/lint/cli/src/com/android/tools/lint/Main.java
index 47d00d2..e83601f 100644
--- a/lint/cli/src/com/android/tools/lint/Main.java
+++ b/lint/cli/src/com/android/tools/lint/Main.java
@@ -836,7 +836,7 @@ public class Main extends LintClient {
if (issue.getExplanation() != null) {
System.out.println();
- System.out.println(wrap(issue.getExplanation()));
+ System.out.println(wrap(issue.getExplanationAsSimpleText()));
}
if (issue.getMoreInfo() != null) {
System.out.println("More information: " + issue.getMoreInfo());