Source:
public void testResourceType ( ) throws java.lang.Exception { assertEquals ( ( ( ( ( ( ( ( ( ( ( ( ( com.android.tools.lint.checks.SupportAnnotationDetectorTest.SDK_ANNOTATIONS_AVAILABLE ? "" + ( ( ( ( ( "src/p1/p2/Flow.java:13: Error: Expected resource of type drawable [ResourceType]\n" + " resources.getDrawable(10); // ERROR\n" ) + " ~~\n" ) + "src/p1/p2/Flow.java:18: Error: Expected resource of type drawable [ResourceType]\n" ) + " resources.getDrawable(R.string.my_string); // ERROR\n" ) + " ~~~~~~~~~~~~~~~~~~\n" ) : "" ) + "src/p1/p2/Flow.java:22: Error: Expected resource of type drawable [ResourceType]\n" ) + " myMethod(R.string.my_string); // ERROR\n" ) + " ~~~~~~~~~~~~~~~~~~\n" ) + "src/p1/p2/Flow.java:32: Error: Expected resource identifier (R.type.name) [ResourceType]\n" ) + " myAnyResMethod(50); // ERROR\n" ) + " ~~\n" ) + ( com.android.tools.lint.checks.SupportAnnotationDetectorTest.SDK_ANNOTATIONS_AVAILABLE ? "src/p1/p2/Flow.java:60: Error: Expected resource of type drawable [ResourceType]\n" + ( " resources.getDrawable(MimeTypes.getAnnotatedString()); // Error\n" + " ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n" ) : "" ) ) + "src/p1/p2/Flow.java:68: Error: Expected resource of type drawable [ResourceType]\n" ) + " myMethod(z); // ERROR\n" ) + " ~\n" ) + ( com.android.tools.lint.checks.SupportAnnotationDetectorTest.SDK_ANNOTATIONS_AVAILABLE ? "6 errors, 0 warnings\n" : "3 errors, 0 warnings\n" ) ) , lintProject ( "src/p1/p2/Flow.java.txt=>src/p1/p2/Flow.java" , "src/android/support/annotation/DrawableRes.java.txt=>src/android/support/annotation/DrawableRes.java" ) ) ; }

Target:
public void testResourceType ( ) throws java.lang.Exception { assertEquals ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( com.android.tools.lint.checks.SupportAnnotationDetectorTest.SDK_ANNOTATIONS_AVAILABLE ? "" + ( ( ( ( ( "src/p1/p2/Flow.java:13: Error: Expected resource of type drawable [ResourceType]\n" + " resources.getDrawable(10); // ERROR\n" ) + " ~~\n" ) + "src/p1/p2/Flow.java:18: Error: Expected resource of type drawable [ResourceType]\n" ) + " resources.getDrawable(R.string.my_string); // ERROR\n" ) + " ~~~~~~~~~~~~~~~~~~\n" ) : "" ) + "src/p1/p2/Flow.java:22: Error: Expected resource of type drawable [ResourceType]\n" ) + " myMethod(R.string.my_string, null); // ERROR\n" ) + " ~~~~~~~~~~~~~~~~~~\n" ) + "src/p1/p2/Flow.java:26: Error: Expected resource of type drawable [ResourceType]\n" ) + " resources.getDrawable(R.string.my_string); // ERROR\n" ) + " ~~~~~~~~~~~~~~~~~~\n" ) + "src/p1/p2/Flow.java:32: Error: Expected resource identifier (R.type.name) [ResourceType]\n" ) + " myAnyResMethod(50); // ERROR\n" ) + " ~~\n" ) + ( com.android.tools.lint.checks.SupportAnnotationDetectorTest.SDK_ANNOTATIONS_AVAILABLE ? "src/p1/p2/Flow.java:60: Error: Expected resource of type drawable [ResourceType]\n" + ( " resources.getDrawable(MimeTypes.getAnnotatedString()); // Error\n" + " ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n" ) : "" ) ) + "src/p1/p2/Flow.java:68: Error: Expected resource of type drawable [ResourceType]\n" ) + " myMethod(z, null); // ERROR\n" ) + " ~\n" ) + ( com.android.tools.lint.checks.SupportAnnotationDetectorTest.SDK_ANNOTATIONS_AVAILABLE ? "7 errors, 0 warnings\n" : "4 errors, 0 warnings\n" ) ) , lintProject ( copy ( "src/p1/p2/Flow.java.txt" , "src/p1/p2/Flow.java" ) , copy ( "src/android/support/annotation/DrawableRes.java.txt" , "src/android/support/annotation/DrawableRes.java" ) , mStringResAnnotation , mStyleResAnnotation , mAnyResAnnotation ) ) ; }