Skip to content

Commit

Permalink
fix to match docs
Browse files Browse the repository at this point in the history
  • Loading branch information
wagyourtail committed Jun 12, 2024
1 parent 497468f commit 253aa9a
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -66,13 +66,12 @@ class PropogatorImpl(namespace: Namespace, tree: AbstractMappingTree, required:
override val interfaces = self.interfaces.map { InternalName.read(it) }

override val methods: List<Pair<String, MethodDescriptor?>> = self.methods.filter { method ->
val originalAccess = AccessFlag.of(ElementType.METHOD, method.access)
var access = method.access

// modify access according to mapping's access rules for this class
classNode?.getMethods(namespace, method.name, MethodDescriptor.read(method.desc))?.forEach { mNode ->
for (node in mNode.access) {
if (node.conditions.check(originalAccess)) {
if (node.conditions.check(AccessFlag.of(ElementType.METHOD, access))) {
if (node.namespaces.contains(namespace)) {
if (node.accessType == AccessType.ADD) {
access = method.access + node.accessFlag
Expand Down

0 comments on commit 253aa9a

Please sign in to comment.