Skip to content

Commit

Permalink
fix descriptors using . in AT
Browse files Browse the repository at this point in the history
  • Loading branch information
wagyourtail committed Jul 25, 2024
1 parent 8532c83 commit 55a5440
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ object ATReader : FormatReader {
val targetClass = InternalName.read(input.takeUntil { it.isWhitespace() }.replace(".", "/"))
input.takeNonNewlineWhitespace()
val memberName = if (input.peek() == '#') null else input.takeUntil { it.isWhitespace() || it == '(' }.ifEmpty { null }
val memberDesc = if (memberName == null) null else input.takeUntil { it.isWhitespace() }.ifEmpty { null }
val memberDesc = if (memberName == null) null else input.takeUntil { it.isWhitespace() }.ifEmpty { null }?.replace(".", "/")

val remaining = input.takeLine().trimStart()
if (remaining.isNotEmpty() && remaining.first() != '#') {
Expand Down

0 comments on commit 55a5440

Please sign in to comment.