Do not implicitly propagate deprecations originated in Java
^KT-29604 Fixed
This commit is contained in:
@@ -72,6 +72,8 @@ private fun StorageComponentContainer.configureJavaTopDownAnalysis(
|
||||
useInstance(InternalFlexibleTypeTransformer)
|
||||
|
||||
useImpl<CompilerDeserializationConfiguration>()
|
||||
|
||||
useInstance(JavaDeprecationSettings)
|
||||
}
|
||||
|
||||
fun createContainerForLazyResolveWithJava(
|
||||
|
||||
+16
@@ -0,0 +1,16 @@
|
||||
/*
|
||||
* Copyright 2010-2019 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license
|
||||
* that can be found in the license/LICENSE.txt file.
|
||||
*/
|
||||
|
||||
package org.jetbrains.kotlin.load.java.components
|
||||
|
||||
import org.jetbrains.kotlin.descriptors.annotations.AnnotationDescriptor
|
||||
import org.jetbrains.kotlin.resolve.deprecation.DeprecationSettings
|
||||
|
||||
object JavaDeprecationSettings : DeprecationSettings {
|
||||
override fun propagatedToOverrides(deprecationAnnotation: AnnotationDescriptor): Boolean {
|
||||
if (deprecationAnnotation is JavaDeprecatedAnnotationDescriptor) return false
|
||||
return true
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user