Protected in final inspection: protected modifier is effectively private in final classes #KT-6674 Fixed
This commit is contained in:
committed by
Mikhail Glukhikh
parent
20bac6178c
commit
a541aaafd8
@@ -0,0 +1 @@
|
||||
org.jetbrains.kotlin.idea.inspections.ProtectedInFinalInspection
|
||||
@@ -0,0 +1,4 @@
|
||||
// "Make private" "true"
|
||||
class C {
|
||||
<caret>protected fun foo() {}
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
// "Make private" "true"
|
||||
class C {
|
||||
private fun foo() {}
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
// "Make class open" "true"
|
||||
final class C {
|
||||
<caret>protected fun foo() {}
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
// "Make class open" "true"
|
||||
open class C {
|
||||
protected fun foo() {}
|
||||
}
|
||||
Reference in New Issue
Block a user