Do not report "property can be private" on JvmField properties
So #KT-18970 Fixed
This commit is contained in:
committed by
Mikhail Glukhikh
parent
5281602381
commit
9d06a80519
@@ -0,0 +1 @@
|
||||
org.jetbrains.kotlin.idea.inspections.MemberVisibilityCanPrivateInspection
|
||||
+9
@@ -0,0 +1,9 @@
|
||||
// WITH_RUNTIME
|
||||
// PROBLEM: none
|
||||
|
||||
class J(@JvmField val <caret>a: String) {
|
||||
|
||||
fun foo() {
|
||||
println(a)
|
||||
}
|
||||
}
|
||||
+11
@@ -0,0 +1,11 @@
|
||||
// WITH_RUNTIME
|
||||
// PROBLEM: none
|
||||
|
||||
class J {
|
||||
@JvmField
|
||||
val <caret>b = ""
|
||||
|
||||
fun foo() {
|
||||
println(b)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user