Get rid of 'class object' usages in code and builtins
Replace some comments and library usages as well
This commit is contained in:
+1
-1
@@ -30,7 +30,7 @@ import javax.inject.Inject
|
||||
|
||||
public class TraceBasedErrorReporter : ErrorReporter {
|
||||
|
||||
class object {
|
||||
companion object {
|
||||
private val LOG = Logger.getInstance(javaClass<TraceBasedErrorReporter>())
|
||||
|
||||
public val ABI_VERSION_ERRORS: WritableSlice<String, AbiVersionErrorData> = Slices.createCollectiveSlice()
|
||||
|
||||
+1
-1
@@ -23,7 +23,7 @@ import org.jetbrains.kotlin.name.Name
|
||||
abstract class JavaAnnotationArgumentImpl(
|
||||
override val name: Name?
|
||||
) : JavaAnnotationArgument {
|
||||
class object Factory {
|
||||
companion object Factory {
|
||||
fun create(argument: PsiAnnotationMemberValue, name: Name?): JavaAnnotationArgument {
|
||||
val value = JavaPsiFacade.getInstance(argument.getProject()).getConstantEvaluationHelper().computeConstantExpression(argument)
|
||||
if (value is Enum<*>) {
|
||||
|
||||
+1
-1
@@ -49,7 +49,7 @@ public class VirtualFileKotlinClass private(
|
||||
override fun hashCode() = file.hashCode()
|
||||
override fun toString() = "${javaClass.getSimpleName()}: $file"
|
||||
|
||||
class object Factory {
|
||||
companion object Factory {
|
||||
private val LOG = Logger.getInstance(javaClass<VirtualFileKotlinClass>())
|
||||
|
||||
deprecated("Use KotlinBinaryClassCache")
|
||||
|
||||
+1
-1
@@ -47,7 +47,7 @@ public class JvmDeclarationOrigin(
|
||||
public val element: PsiElement?,
|
||||
public val descriptor: DeclarationDescriptor?
|
||||
) {
|
||||
class object {
|
||||
companion object {
|
||||
public val NO_ORIGIN: JvmDeclarationOrigin = JvmDeclarationOrigin(OTHER, null, null)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user