mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-09 15:53:37 +00:00
Override/Implement: Prefer not-nullable return type when overriding Java method without nullability annotation
#KT-12381 Fixed
(cherry picked from commit 2b87f8e)
This commit is contained in:
@@ -2,7 +2,7 @@ import foo.A
|
||||
import foo.B
|
||||
|
||||
class C : A() {
|
||||
override fun foo(x: MutableList<Any?>?, y: String?): B<*>? {
|
||||
override fun foo(x: MutableList<Any?>?, y: String?): B<*> {
|
||||
<selection><caret>throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates.</selection>
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user