Skip to content

Commit 4e7125e

Browse files
committed
parser: Readd deprecated legacy annotation parser api
1 parent 8451e9a commit 4e7125e

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/main/java/io/github/notstirred/dasm/annotation/AnnotationParser.java

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,11 @@ public AnnotationParser(ClassNodeProvider provider) {
4848
this.provider = provider;
4949
}
5050

51+
@Deprecated
52+
public DasmContext buildContext() {
53+
return new DasmContext(this.redirectSetsByType, this.containers);
54+
}
55+
5156
public DasmContext parseDasmClasses(Collection<Class<?>> dasmClasses) throws DasmException {
5257
List<ClassNode> collect = new ArrayList<>();
5358
for (Class<?> clazz : dasmClasses) {
@@ -73,7 +78,8 @@ private void addRedirectSet(Type redirectSetType, RedirectSetImpl redirectSet) {
7378
});
7479
}
7580

76-
private void findDasmAnnotations(ClassNode targetClass) throws DasmException {
81+
@Deprecated
82+
public void findDasmAnnotations(ClassNode targetClass) throws DasmException {
7783
Type targetClassType = Type.getType(TypeUtil.typeNameToDescriptor(targetClass.name));
7884
boolean isTargetInterface = (targetClass.access & Opcodes.ACC_INTERFACE) != 0;
7985

0 commit comments

Comments
 (0)