Output descriptor last in Member{Desc,Ref}.toString()

The next commit will make MemberRef comparable, with the owner/name
being used for sorting before the descriptor. This makes the output of
the fields consistent with the sort order.

Signed-off-by: Graham <gpe@openrs2.dev>
Graham 5 years ago
parent 9760a98d95
commit c365019007
  1. 2
      asm/src/main/java/dev/openrs2/asm/MemberDesc.kt
  2. 2
      asm/src/main/java/dev/openrs2/asm/MemberRef.kt

@ -13,6 +13,6 @@ data class MemberDesc(val name: String, val desc: String) {
constructor(memberRef: MemberRef) : this(memberRef.name, memberRef.desc)
override fun toString(): String {
return "$desc $name"
return "$name $desc"
}
}

@ -14,6 +14,6 @@ data class MemberRef(val owner: String, val name: String, val desc: String) {
constructor(owner: String, desc: MemberDesc) : this(owner, desc.name, desc.desc)
override fun toString(): String {
return "$desc $owner.$name"
return "$owner.$name $desc"
}
}

Loading…
Cancel
Save