|
@@ -166,7 +166,7 @@ public final class JavassistUtil {
|
|
|
AnnotationsAttribute annotationsAttribute = (AnnotationsAttribute) y;
|
|
AnnotationsAttribute annotationsAttribute = (AnnotationsAttribute) y;
|
|
|
Annotation[] annotations = annotationsAttribute.getAnnotations();
|
|
Annotation[] annotations = annotationsAttribute.getAnnotations();
|
|
|
Annotation[] newAnnotations = Arrays.stream(annotations)
|
|
Annotation[] newAnnotations = Arrays.stream(annotations)
|
|
|
- .filter(annotation -> StrUtil.startsWithOrRegMatched(x,annotation.getTypeName()))
|
|
|
|
|
|
|
+ .filter(annotation -> !annotation.getTypeName().startsWith(x))
|
|
|
.toArray(Annotation[]::new);
|
|
.toArray(Annotation[]::new);
|
|
|
annotationsAttribute.setAnnotations(newAnnotations);
|
|
annotationsAttribute.setAnnotations(newAnnotations);
|
|
|
}
|
|
}
|