Skip to content

Commit

Permalink
fix: ignore type matching for AREX-related content (#498)
Browse files Browse the repository at this point in the history
  • Loading branch information
DanLi39 authored Jun 7, 2024
1 parent 0680c89 commit 7a8096f
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package io.arex.inst.extension.matcher;

import io.arex.agent.bootstrap.cache.AdviceInjectorCache;
import net.bytebuddy.description.type.TypeDescription;
import net.bytebuddy.matcher.ElementMatcher;

Expand Down Expand Up @@ -29,6 +30,7 @@ public boolean matches(TypeDescription target) {
}
}

return false;
// check if the target is in the AdviceInjectorCache
return AdviceInjectorCache.contains(target.getName());
}
}

0 comments on commit 7a8096f

Please sign in to comment.