Android Lint: Use Uast to check for SuppressLint annotation

#KT-14800 Fixed Target versions 1.1.5
This commit is contained in:
Vyacheslav Gerasimov
2017-08-21 21:26:26 +03:00
parent cb3a8d87d0
commit e06cb1ec39
3 changed files with 38 additions and 7 deletions
+1 -1
View File
@@ -73,7 +73,7 @@ class JavaPerformanceTest(context: Context, attrs: AttributeSet, defStyle: Int)
// This one should not be reported:
@SuppressLint("UseSparseArrays")
val myOtherMap = <warning descr="Use `new SparseArray<Object>(...)` instead for better performance">HashMap<Int, Any>()</warning>
val myOtherMap = HashMap<Int, Any>()
}
protected fun onMeasure(widthMeasureSpec: Int, heightMeasureSpec: Int,