@@ -29,6 +29,7 @@ import android.os.Build.VERSION_CODES
29
29
import android.os.Build.VERSION_CODES.ICE_CREAM_SANDWICH
30
30
import android.os.Build.VERSION_CODES.JELLY_BEAN
31
31
import android.os.Bundle
32
+ import android.os.Parcelable
32
33
import android.system.ErrnoException
33
34
import android.widget.TextView
34
35
@@ -415,16 +416,15 @@ class ApiCallTest: Activity() {
415
416
layout as ? LinearLayout // OK API 1
416
417
layout as LinearLayout // OK API 1
417
418
418
- if (layout !is GridLayout ) {} // TODO: should be error, fixed in uast > 1.0.8
419
- layout as ? GridLayout // TODO: should be error, fixed in uast > 1.0.8
420
- layout as GridLayout // TODO: should be error, fixed in uast > 1.0.8
419
+ if (layout !is < error descr = " Class requires API level 14 (current min is 1): android.widget.GridLayout " > GridLayout < / error > ) {}
420
+ layout as ? < error descr = " Class requires API level 14 (current min is 1): android.widget.GridLayout " > GridLayout < / error >
421
+ layout as < error descr = " Class requires API level 14 (current min is 1): android.widget.GridLayout " > GridLayout < / error >
421
422
422
- val grid = layout as ? GridLayout // TODO: should be error, fixed in uast > 1.0.8
423
+ val grid = layout as ? < error descr = " Class requires API level 14 (current min is 1): android.widget.GridLayout " > GridLayout < / error >
423
424
val linear = layout as LinearLayout // OK API 1
424
425
}
425
426
426
- // TODO: should be error
427
- class ErrorVectorDravable : VectorDrawable ()
427
+ abstract class ErrorVectorDravable : <error descr="Class requires API level 21 (current min is 1 ): android.graphics.drawable.VectorDrawable">VectorDrawable</error>(), Parcelable
428
428
429
429
@TargetApi(21 )
430
430
class MyVectorDravable : VectorDrawable ()
0 commit comments