Skip to content

Commit 86e6328

Browse files
author
Rafael Winterhalter
committed
Removed rule to always retain receiver type as those are now kept in the instrumented type.
1 parent d49c708 commit 86e6328

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

byte-buddy-dep/src/main/java/net/bytebuddy/dynamic/scaffold/TypeWriter.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3197,7 +3197,7 @@ public AnnotationVisitor visitAnnotationDefault() {
31973197

31983198
@Override
31993199
public AnnotationVisitor visitTypeAnnotation(int typeReference, TypePath typePath, String descriptor, boolean visible) {
3200-
return annotationRetention.isEnabled() || TypeReference.newTypeReference(TypeReference.METHOD_RECEIVER).getValue() == typeReference
3200+
return annotationRetention.isEnabled()
32013201
? super.visitTypeAnnotation(typeReference, typePath, descriptor, visible)
32023202
: IGNORE_ANNOTATION;
32033203
}
@@ -3282,7 +3282,7 @@ public AnnotationVisitor visitAnnotationDefault() {
32823282

32833283
@Override
32843284
public AnnotationVisitor visitTypeAnnotation(int typeReference, TypePath typePath, String descriptor, boolean visible) {
3285-
return annotationRetention.isEnabled() || TypeReference.newTypeReference(TypeReference.METHOD_RECEIVER).getValue() == typeReference
3285+
return annotationRetention.isEnabled()
32863286
? super.visitTypeAnnotation(typeReference, typePath, descriptor, visible)
32873287
: IGNORE_ANNOTATION;
32883288
}

0 commit comments

Comments
 (0)