181: Fix test data for android lint based tests

This commit is contained in:
Vyacheslav Gerasimov
2017-10-23 18:03:24 +03:00
committed by Nikolay Krasko
parent 585348c590
commit ae338566c2
109 changed files with 2822 additions and 0 deletions
@@ -0,0 +1,14 @@
import android.os.Build
// INTENTION_TEXT: Surround with if (VERSION.SDK_INT >= VERSION_CODES.KITKAT) { ... }
// INSPECTION_CLASS: com.android.tools.idea.lint.AndroidLintInlinedApiInspection
class Test {
fun foo(): Int {
return if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT) {
android.R.attr.windowTranslucentStatus
} else {
TODO("VERSION.SDK_INT < KITKAT")
}
}
}