Source:
public void test ( ) throws java.lang.Exception { assertEquals ( ( "src/test/pkg/LocaleTest.java:11: Warning: Implicitly using the default locale is a common source of bugs: Use toUpperCase(Locale) instead [DefaultLocale]\n" + ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( " System.out.println(\"WRONG\".toUpperCase());\n" + " ~~~~~~~~~~~\n" ) + "src/test/pkg/LocaleTest.java:16: Warning: Implicitly using the default locale is a common source of bugs: Use toLowerCase(Locale) instead [DefaultLocale]\n" ) + " System.out.println(\"WRONG\".toLowerCase());\n" ) + " ~~~~~~~~~~~\n" ) + "src/test/pkg/LocaleTest.java:20: Warning: Implicitly using the default locale is a common source of bugs: Use String.format(Locale, ...) instead [DefaultLocale]\n" ) + " String.format(\"WRONG: %f\", 1.0f); // Implies locale\n" ) + " ~~~~~~\n" ) + "src/test/pkg/LocaleTest.java:21: Warning: Implicitly using the default locale is a common source of bugs: Use String.format(Locale, ...) instead [DefaultLocale]\n" ) + " String.format(\"WRONG: %1$f\", 1.0f);\n" ) + " ~~~~~~\n" ) + "src/test/pkg/LocaleTest.java:22: Warning: Implicitly using the default locale is a common source of bugs: Use String.format(Locale, ...) instead [DefaultLocale]\n" ) + " String.format(\"WRONG: %e\", 1.0f);\n" ) + " ~~~~~~\n" ) + "src/test/pkg/LocaleTest.java:23: Warning: Implicitly using the default locale is a common source of bugs: Use String.format(Locale, ...) instead [DefaultLocale]\n" ) + " String.format(\"WRONG: %d\", 1.0f);\n" ) + " ~~~~~~\n" ) + "src/test/pkg/LocaleTest.java:24: Warning: Implicitly using the default locale is a common source of bugs: Use String.format(Locale, ...) instead [DefaultLocale]\n" ) + " String.format(\"WRONG: %g\", 1.0f);\n" ) + " ~~~~~~\n" ) + "src/test/pkg/LocaleTest.java:25: Warning: Implicitly using the default locale is a common source of bugs: Use String.format(Locale, ...) instead [DefaultLocale]\n" ) + " String.format(\"WRONG: %g\", 1.0f);\n" ) + " ~~~~~~\n" ) + "src/test/pkg/LocaleTest.java:26: Warning: Implicitly using the default locale is a common source of bugs: Use String.format(Locale, ...) instead [DefaultLocale]\n" ) + " String.format(\"WRONG: %1$tm %1$te,%1$tY\",\n" ) + " ~~~~~~\n" ) + "src/test/pkg/LocaleTest.java:32: Warning: To get local formatting use getDateInstance(), getDateTimeInstance(), or getTimeInstance(), or use new SimpleDateFormat(String template, Locale locale) with for example Locale.US for ASCII dates. [SimpleDateFormat]\n" ) + " new SimpleDateFormat(); // WRONG\n" ) + " ~~~~~~~~~~~~~~~~\n" ) + "src/test/pkg/LocaleTest.java:33: Warning: To get local formatting use getDateInstance(), getDateTimeInstance(), or getTimeInstance(), or use new SimpleDateFormat(String template, Locale locale) with for example Locale.US for ASCII dates. [SimpleDateFormat]\n" ) + " new SimpleDateFormat(\"yyyy-MM-dd\"); // WRONG\n" ) + " ~~~~~~~~~~~~~~~~\n" ) + "src/test/pkg/LocaleTest.java:34: Warning: To get local formatting use getDateInstance(), getDateTimeInstance(), or getTimeInstance(), or use new SimpleDateFormat(String template, Locale locale) with for example Locale.US for ASCII dates. [SimpleDateFormat]\n" ) + " new SimpleDateFormat(\"yyyy-MM-dd\", DateFormatSymbols.getInstance()); // WRONG\n" ) + " ~~~~~~~~~~~~~~~~\n" ) + "0 errors, 12 warnings\n" ) ) , lintProject ( "bytecode/.classpath=>.classpath" , "bytecode/AndroidManifest.xml=>AndroidManifest.xml" , "res/layout/onclick.xml=>res/layout/onclick.xml" , "bytecode/LocaleTest.java.txt=>src/test/pkg/LocaleTest.java" , "bytecode/LocaleTest.class.data=>bin/classes/test/pkg/LocaleTest.class" ) ) ; }

Target:
public void test ( ) throws java.lang.Exception { assertEquals ( ( "src/test/pkg/LocaleTest.java:11: Warning: Implicitly using the default locale is a common source of bugs: Use toUpperCase(Locale) instead [DefaultLocale]\n" + ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( " System.out.println(\"WRONG\".toUpperCase());\n" + " ~~~~~~~~~~~\n" ) + "src/test/pkg/LocaleTest.java:16: Warning: Implicitly using the default locale is a common source of bugs: Use toLowerCase(Locale) instead [DefaultLocale]\n" ) + " System.out.println(\"WRONG\".toLowerCase());\n" ) + " ~~~~~~~~~~~\n" ) + "src/test/pkg/LocaleTest.java:20: Warning: Implicitly using the default locale is a common source of bugs: Use String.format(Locale, ...) instead [DefaultLocale]\n" ) + " String.format(\"WRONG: %f\", 1.0f); // Implies locale\n" ) + " ~~~~~~\n" ) + "src/test/pkg/LocaleTest.java:21: Warning: Implicitly using the default locale is a common source of bugs: Use String.format(Locale, ...) instead [DefaultLocale]\n" ) + " String.format(\"WRONG: %1$f\", 1.0f);\n" ) + " ~~~~~~\n" ) + "src/test/pkg/LocaleTest.java:22: Warning: Implicitly using the default locale is a common source of bugs: Use String.format(Locale, ...) instead [DefaultLocale]\n" ) + " String.format(\"WRONG: %e\", 1.0f);\n" ) + " ~~~~~~\n" ) + "src/test/pkg/LocaleTest.java:23: Warning: Implicitly using the default locale is a common source of bugs: Use String.format(Locale, ...) instead [DefaultLocale]\n" ) + " String.format(\"WRONG: %d\", 1.0f);\n" ) + " ~~~~~~\n" ) + "src/test/pkg/LocaleTest.java:24: Warning: Implicitly using the default locale is a common source of bugs: Use String.format(Locale, ...) instead [DefaultLocale]\n" ) + " String.format(\"WRONG: %g\", 1.0f);\n" ) + " ~~~~~~\n" ) + "src/test/pkg/LocaleTest.java:25: Warning: Implicitly using the default locale is a common source of bugs: Use String.format(Locale, ...) instead [DefaultLocale]\n" ) + " String.format(\"WRONG: %g\", 1.0f);\n" ) + " ~~~~~~\n" ) + "src/test/pkg/LocaleTest.java:26: Warning: Implicitly using the default locale is a common source of bugs: Use String.format(Locale, ...) instead [DefaultLocale]\n" ) + " String.format(\"WRONG: %1$tm %1$te,%1$tY\",\n" ) + " ~~~~~~\n" ) + "0 errors, 9 warnings\n" ) ) , lintProject ( "bytecode/.classpath=>.classpath" , "bytecode/AndroidManifest.xml=>AndroidManifest.xml" , "res/layout/onclick.xml=>res/layout/onclick.xml" , "bytecode/LocaleTest.java.txt=>src/test/pkg/LocaleTest.java" , "bytecode/LocaleTest.class.data=>bin/classes/test/pkg/LocaleTest.class" ) ) ; }