Run "Add 'init' keyword in whole project" quickfix
This commit is contained in:
+2
-2
@@ -46,9 +46,9 @@ class LazyJavaClassDescriptor(
|
||||
) : ClassDescriptorBase(outerC.storageManager, containingDeclaration, fqName.shortName(),
|
||||
outerC.sourceElementFactory.source(jClass)), JavaClassDescriptor {
|
||||
|
||||
private val c: LazyJavaResolverContext = outerC.child(this, jClass);
|
||||
private val c: LazyJavaResolverContext = outerC.child(this, jClass)
|
||||
|
||||
{
|
||||
init {
|
||||
c.javaResolverCache.recordClass(jClass, this)
|
||||
}
|
||||
|
||||
|
||||
+2
-2
@@ -31,9 +31,9 @@ public class DeserializationComponentsForJava(
|
||||
annotationAndConstantLoader: BinaryClassAnnotationAndConstantLoaderImpl,
|
||||
packageFragmentProvider: LazyJavaPackageFragmentProvider
|
||||
) {
|
||||
val components: DeserializationComponents;
|
||||
val components: DeserializationComponents
|
||||
|
||||
{
|
||||
init {
|
||||
val localClassResolver = LocalClassResolverImpl()
|
||||
components = DeserializationComponents(
|
||||
storageManager, moduleDescriptor, classDataFinder, annotationAndConstantLoader, packageFragmentProvider,
|
||||
|
||||
+2
-2
@@ -27,9 +27,9 @@ public class KotlinClassHeader(
|
||||
public val classKind: KotlinClass.Kind?,
|
||||
public val syntheticClassKind: KotlinSyntheticClass.Kind?
|
||||
) {
|
||||
public val isCompatibleAbiVersion: Boolean get() = AbiVersionUtil.isAbiVersionCompatible(version);
|
||||
public val isCompatibleAbiVersion: Boolean get() = AbiVersionUtil.isAbiVersionCompatible(version)
|
||||
|
||||
{
|
||||
init {
|
||||
if (isCompatibleAbiVersion) {
|
||||
assert((annotationData == null) == (kind != Kind.CLASS && kind != Kind.PACKAGE_FACADE)) {
|
||||
"Annotation data should be not null only for CLASS and PACKAGE_FACADE (kind=$kind)"
|
||||
|
||||
@@ -32,7 +32,7 @@ public class ModuleDescriptorImpl(
|
||||
override val defaultImports: List<ImportPath>,
|
||||
override val platformToKotlinClassMap: PlatformToKotlinClassMap
|
||||
) : DeclarationDescriptorImpl(Annotations.EMPTY, moduleName), ModuleDescriptor {
|
||||
{
|
||||
init {
|
||||
if (!moduleName.isSpecial()) {
|
||||
throw IllegalArgumentException("Module name must be special: $moduleName")
|
||||
}
|
||||
|
||||
+1
-1
@@ -25,7 +25,7 @@ import org.jetbrains.kotlin.builtins.KotlinBuiltIns
|
||||
public class CapturedTypeConstructor(
|
||||
public val typeProjection: TypeProjection
|
||||
): TypeConstructor {
|
||||
{
|
||||
init {
|
||||
assert(typeProjection.getProjectionKind() != Variance.INVARIANT) {
|
||||
"Only nontrivial projections can be captured, not: $typeProjection"
|
||||
}
|
||||
|
||||
@@ -152,7 +152,7 @@ public open class DelegatingFlexibleType protected (
|
||||
}
|
||||
}
|
||||
|
||||
{
|
||||
init {
|
||||
assert (!lowerBound.isFlexible()) { "Lower bound of a flexible type can not be flexible: $lowerBound" }
|
||||
assert (!upperBound.isFlexible()) { "Upper bound of a flexible type can not be flexible: $upperBound" }
|
||||
assert (lowerBound != upperBound) { "Lower and upper bounds are equal: $lowerBound == $upperBound" }
|
||||
|
||||
Reference in New Issue
Block a user