Minor: remove redundant class objects from project code

This commit is contained in:
Pavel V. Talanov
2015-02-19 12:42:50 +03:00
parent b012b9d8a3
commit 7f672f8078
2 changed files with 6 additions and 11 deletions
@@ -33,10 +33,8 @@ trait LazyJavaClassResolver {
} }
trait TypeParameterResolver { trait TypeParameterResolver {
class object { object EMPTY : TypeParameterResolver {
object EMPTY : TypeParameterResolver { override fun resolveTypeParameter(javaTypeParameter: JavaTypeParameter): TypeParameterDescriptor? = null
override fun resolveTypeParameter(javaTypeParameter: JavaTypeParameter): TypeParameterDescriptor? = null
}
} }
fun resolveTypeParameter(javaTypeParameter: JavaTypeParameter): TypeParameterDescriptor? fun resolveTypeParameter(javaTypeParameter: JavaTypeParameter): TypeParameterDescriptor?
@@ -51,13 +51,10 @@ public class AbnormalTermination(public val message: String): InterpreterResult
} }
public trait InterpretationEventHandler { public trait InterpretationEventHandler {
object NONE : InterpretationEventHandler {
class object { override fun instructionProcessed(insn: AbstractInsnNode): InterpreterResult? = null
object NONE : InterpretationEventHandler { override fun exceptionThrown(currentState: Frame<Value>, currentInsn: AbstractInsnNode, exception: Value): InterpreterResult? = null
override fun instructionProcessed(insn: AbstractInsnNode): InterpreterResult? = null override fun exceptionCaught(currentState: Frame<Value>, currentInsn: AbstractInsnNode, exception: Value): InterpreterResult? = null
override fun exceptionThrown(currentState: Frame<Value>, currentInsn: AbstractInsnNode, exception: Value): InterpreterResult? = null
override fun exceptionCaught(currentState: Frame<Value>, currentInsn: AbstractInsnNode, exception: Value): InterpreterResult? = null
}
} }
// If a non-null value is returned, interpreter loop is terminated and that value is used as a result // If a non-null value is returned, interpreter loop is terminated and that value is used as a result