J2K KotlinJvmBinaryClass & AnnotationAndConstantLoader: convert
This commit is contained in:
+2
-1
@@ -33,7 +33,8 @@ class VirtualFileKotlinClass private constructor(
|
||||
innerClasses: FileBasedKotlinClass.InnerClassesInfo
|
||||
) : FileBasedKotlinClass(className, classHeader, innerClasses) {
|
||||
|
||||
override fun getLocation() = file.path
|
||||
override val location: String
|
||||
get() = file.path
|
||||
|
||||
override fun getFileContents(): ByteArray {
|
||||
try {
|
||||
|
||||
@@ -182,7 +182,8 @@ object InlineTestUtil {
|
||||
val klass = FileBasedKotlinClass.create(file.asByteArray()) {
|
||||
className, classHeader, innerClasses ->
|
||||
object : FileBasedKotlinClass(className, classHeader, innerClasses) {
|
||||
override fun getLocation(): String = throw UnsupportedOperationException()
|
||||
override val location: String
|
||||
get() = throw UnsupportedOperationException()
|
||||
override fun getFileContents(): ByteArray = throw UnsupportedOperationException()
|
||||
override fun hashCode(): Int = throw UnsupportedOperationException()
|
||||
override fun equals(other: Any?): Boolean = throw UnsupportedOperationException()
|
||||
|
||||
Reference in New Issue
Block a user