Replace Guice's repeat with Kotlin's

bzip2
Graham 5 years ago
parent 5c367073c0
commit a99d5973ae
  1. 3
      deob/src/main/java/dev/openrs2/deob/remap/TypedRemapper.kt

@ -1,7 +1,6 @@
package dev.openrs2.deob.remap package dev.openrs2.deob.remap
import com.github.michaelbull.logging.InlineLogger import com.github.michaelbull.logging.InlineLogger
import com.google.common.base.Strings
import dev.openrs2.asm.MemberDesc import dev.openrs2.asm.MemberDesc
import dev.openrs2.asm.MemberRef import dev.openrs2.asm.MemberRef
import dev.openrs2.asm.classpath.ClassMetadata import dev.openrs2.asm.classpath.ClassMetadata
@ -158,7 +157,7 @@ class TypedRemapper private constructor(
var type = Type.getType(partition.iterator().next().desc) var type = Type.getType(partition.iterator().next().desc)
if (type.sort == Type.ARRAY) { if (type.sort == Type.ARRAY) {
prefix = Strings.repeat("Array", type.dimensions) prefix = "Array".repeat(type.dimensions)
type = type.elementType type = type.elementType
} }

Loading…
Cancel
Save