Skip to content

Commit

Permalink
refactor: remove condition to detect synthetic classes in future
Browse files Browse the repository at this point in the history
  • Loading branch information
algomaster99 committed Aug 25, 2023
1 parent a224770 commit 03435e5
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public byte[] transform(

private static byte[] isLoadedClassWhitelisted(String className, byte[] classfileBuffer) {
Map<String, List<Provenance>> fingerprints = options.getFingerprints();
if (RuntimeClass.isProxyClass(classfileBuffer) || RuntimeClass.isSynthetic(classfileBuffer)) {
if (RuntimeClass.isProxyClass(classfileBuffer)) {
return classfileBuffer;
}
if (INTERNAL_PACKAGES.stream().anyMatch(className::startsWith)) {
Expand Down

0 comments on commit 03435e5

Please sign in to comment.