Skip to content

Commit

Permalink
downgrade types more
Browse files Browse the repository at this point in the history
  • Loading branch information
wagyourtail committed May 23, 2024
1 parent 4f295f2 commit db1938b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/xyz/wagyourtail/jvmdg/ClassDowngrader.java
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ public Set<MemberNameAndDesc> getMembers(int version, Type type) throws IOExcept
Set<MemberNameAndDesc> members = new HashSet<>();
for (MethodNode o : node.methods) {
if ((o.access & (Opcodes.ACC_ABSTRACT | Opcodes.ACC_PRIVATE)) != 0) continue;
members.add(new MemberNameAndDesc(o.name, Type.getMethodType(o.desc)));
members.add(new MemberNameAndDesc(o.name, stubClass(node.version, Type.getMethodType(o.desc))));
}
return members;
}
Expand All @@ -147,7 +147,7 @@ public Set<MemberNameAndDesc> getMembers(int version, Type type) throws IOExcept
Set<MemberNameAndDesc> members = new HashSet<>();
for (MethodNode o : node.methods) {
if ((o.access & (Opcodes.ACC_ABSTRACT | Opcodes.ACC_PRIVATE)) != 0) continue;
members.add(new MemberNameAndDesc(o.name, Type.getMethodType(o.desc)));
members.add(new MemberNameAndDesc(o.name, stubClass(node.version, Type.getMethodType(o.desc))));
}
return members;
}
Expand Down

0 comments on commit db1938b

Please sign in to comment.