Enum warnings fixed: deprecated delimiters, short super constructors, both in project and in libraries

This commit is contained in:
Mikhail Glukhikh
2015-05-18 13:19:52 +03:00
parent 5c3d8c1616
commit fdf0ea5546
77 changed files with 399 additions and 399 deletions
@@ -81,7 +81,7 @@ class FuzzyType(
= matchedSubstitutor(otherType, MatchKind.IS_SUPERTYPE)
private enum class MatchKind {
IS_SUBTYPE
IS_SUBTYPE,
IS_SUPERTYPE
}
@@ -80,8 +80,8 @@ private fun JetType.hasAnnotationMaybeExternal(fqName: FqName) = with (getAnnota
} != null
public enum class TypeNullability {
NOT_NULL
NULLABLE
NOT_NULL,
NULLABLE,
FLEXIBLE
}
@@ -26,18 +26,18 @@ import org.jetbrains.kotlin.resolve.calls.smartcasts.SmartCastUtils
import org.jetbrains.kotlin.descriptors.DeclarationDescriptor
public enum class CallType {
NORMAL
SAFE
NORMAL,
SAFE,
INFIX {
override fun canCall(descriptor: DeclarationDescriptor)
= descriptor is SimpleFunctionDescriptor && descriptor.getValueParameters().size() == 1
}
},
UNARY {
override fun canCall(descriptor: DeclarationDescriptor)
= descriptor is SimpleFunctionDescriptor && descriptor.getValueParameters().size() == 0
}
};
public open fun canCall(descriptor: DeclarationDescriptor): Boolean = true
}
@@ -17,7 +17,7 @@
package org.jetbrains.kotlin.resolve.lazy
public enum class BodyResolveMode {
FULL
PARTIAL
FULL,
PARTIAL,
PARTIAL_FOR_COMPLETION
}
@@ -531,9 +531,9 @@ class PartialBodyResolveFilter(
}
private enum class MarkLevel {
SKIP
TAKE
NEED_REFERENCE_RESOLVE
SKIP,
TAKE,
NEED_REFERENCE_RESOLVE,
NEED_COMPLETION
}