Skip to content

Commit

Permalink
Fix deprecations relating to kotlinx-metadata update.
Browse files Browse the repository at this point in the history
  • Loading branch information
autonomousapps committed Dec 9, 2023
1 parent 5596db9 commit 46c4927
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ internal val ClassNode.kotlinMetadata: KotlinClassMetadata?
extraInt = get("xi") as Int?
)
}
return KotlinClassMetadata.read(header)
return KotlinClassMetadata.readLenient(header)
}

internal fun KotlinClassMetadata?.isFileOrMultipartFacade() =
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,7 @@ internal class KotlinMagicFinder(
// See https://github.com/autonomousapps/dependency-analysis-gradle-plugin/issues/1035
// See https://youtrack.jetbrains.com/issue/KT-60870
val metadata = try {
KotlinClassMetadata.read(header.build())
KotlinClassMetadata.readLenient(header.build())
} catch (e: IllegalArgumentException) {
logger.debug("Can't read class file '$classFile'")
errorsReport.appendText("Can't read class file '$classFile'\n")
Expand Down

0 comments on commit 46c4927

Please sign in to comment.