Skip to content

Commit

Permalink
move up lowering the version
Browse files Browse the repository at this point in the history
  • Loading branch information
wagyourtail committed Jul 21, 2024
1 parent ecf1e26 commit 9ad7afd
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -740,6 +740,8 @@ public ClassNode downgrade(final ClassDowngrader downgrader, ClassNode clazz, fi
ensureInit(downgrader);
final Set<String> warnings = new LinkedHashSet<>();

clazz.version = outputVersion;

final IOFunction<Type, Set<MemberNameAndDesc>> getMembers = new IOFunction<Type, Set<MemberNameAndDesc>>() {
@Override
public Set<MemberNameAndDesc> apply(Type o) throws IOException {
Expand Down Expand Up @@ -839,7 +841,6 @@ public ClassNode apply(ClassNode classNode) throws IOException {
return null;
}
printWarnings(warnings, className);
clazz.version = outputVersion;
return clazz;
}

Expand Down

0 comments on commit 9ad7afd

Please sign in to comment.