Check if modality is refined in "Redundant modifier" inspection

This commit is contained in:
Yan Zhulanow
2016-12-05 22:15:49 +03:00
parent 0a2b52c1ed
commit 3b65cb1ef2
9 changed files with 111 additions and 18 deletions
+24
View File
@@ -0,0 +1,24 @@
annotation class AllOpen
@AllOpen
class TestWithAllOpen {
val prop: String = ""
fun method() {}
open val openProp: String = ""
open fun openMethod() {}
final val finalProp: String = ""
final fun finalMethod() {}
}
class TestWithoutAllOpen {
val prop: String = ""
fun method() {}
open val openProp: String = ""
open fun openMethod() {}
final val finalProp: String = ""
final fun finalMethod() {}
}