Skip to content

Commit

Permalink
refactor: only compute maxs and use existing stack frames
Browse files Browse the repository at this point in the history
  • Loading branch information
Sculas authored and oSumAtrIX committed Jun 5, 2022
1 parent be992a3 commit b197956
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/main/kotlin/app/revanced/patcher/util/Io.kt
Original file line number Diff line number Diff line change
Expand Up @@ -79,10 +79,7 @@ internal class Io(
jos.putNextEntry(JarEntry(name))

// parse the patched class to a byte array and write it to the output stream
val cw = ClassWriter(
classReaders[name]!!,
ClassWriter.COMPUTE_FRAMES or ClassWriter.COMPUTE_MAXS
)
val cw = ClassWriter(classReaders[name]!!, ClassWriter.COMPUTE_MAXS)
patchedClass.accept(cw)
jos.write(cw.toByteArray())

Expand Down

0 comments on commit b197956

Please sign in to comment.